VirtualSnapshotSpan.IntersectsWith Method
Determines whether the specified virtual span intersects this span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Function IntersectsWith ( _
virtualSpan As VirtualSnapshotSpan _
) As Boolean
public bool IntersectsWith(
VirtualSnapshotSpan virtualSpan
)
public:
bool IntersectsWith(
VirtualSnapshotSpan virtualSpan
)
member IntersectsWith :
virtualSpan:VirtualSnapshotSpan -> bool
public function IntersectsWith(
virtualSpan : VirtualSnapshotSpan
) : boolean
Parameters
virtualSpan
Type: Microsoft.VisualStudio.Text.VirtualSnapshotSpanThe virtual span to check.
Return Value
Type: System.Boolean
true if the spans intersect, otherwise false.
Remarks
Two spans intersect if they have positions in common, or if the end of one span coincides with the start of the other span.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.