Span::IntersectsWith Method (Span)

 

Determines whether span intersects this span.

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

public:
bool IntersectsWith(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span to check.

Return Value

Type: System::Boolean

true if the spans intersect, otherwise false.

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: