SnapshotSpan.OverlapsWith Method (SnapshotSpan)

Determines whether another span overlaps this span.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the spans overlap, otherwise false.

Remarks

Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

.NET Framework Security

See Also

Reference

SnapshotSpan Structure

OverlapsWith Overload

Microsoft.VisualStudio.Text Namespace