SnapshotSpan.IntersectsWith Method (SnapshotSpan)

Determines whether the specified snapshot span intersects this span.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Function IntersectsWith ( _
    snapshotSpan As SnapshotSpan _
) As Boolean
public bool IntersectsWith(
    SnapshotSpan snapshotSpan
)
public:
bool IntersectsWith(
    SnapshotSpan snapshotSpan
)
member IntersectsWith : 
        snapshotSpan:SnapshotSpan -> bool 
public function IntersectsWith(
    snapshotSpan : SnapshotSpan
) : boolean

Parameters

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, and neither is empty.

.NET Framework Security

See Also

Reference

SnapshotSpan Structure

IntersectsWith Overload

Microsoft.VisualStudio.Text Namespace