Span::Overlap Method (Span)

 

Gets the overlap with the specified span.

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

public:
Nullable<Span> Overlap(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span.

Return Value

Type: System::Nullable<Span>

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

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

Return to top
Show: