Partager via


SnapshotSpan.OverlapsWith Method (Span)

Determines whether simpleSpan overlaps this span.

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

Syntax

'Déclaration
Public Function OverlapsWith ( _
    simpleSpan As Span _
) As Boolean
public bool OverlapsWith(
    Span simpleSpan
)
public:
bool OverlapsWith(
    Span simpleSpan
)
member OverlapsWith : 
        simpleSpan:Span -> bool 
public function OverlapsWith(
    simpleSpan : Span
) : boolean

Parameters

Return Value

Type: System.Boolean
tru e 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