Span::Intersection Method (Span)

 

Gets the intersection with the given span, or null if there is no intersection.

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

public:
Nullable<Span> Intersection(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span to check.

Return Value

Type: System::Nullable<Span>

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

Two spans intersect if they have positions in common, or if the end of one span coincides with the start of the other span.

Return to top
Show: