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)

public:
bool OverlapsWith(
	Span simpleSpan
)

Parameters

simpleSpan
Type: Microsoft.VisualStudio.Text::Span

The span to check.

Return Value

Type: System::Boolean

true if the spans overlap, otherwise false.

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

Return to top
Show: