SnapshotSpan::Overlap Method (Span)

 

Getss the overlap with the given span.

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

public:
Nullable<SnapshotSpan> Overlap(
	Span simpleSpan
)

Parameters

simpleSpan
Type: Microsoft.VisualStudio.Text::Span

The span to check.

Return Value

Type: System::Nullable<SnapshotSpan>

The overlap of the spans, or null if they do not overlap.

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: