Click or drag to resize

TextSpanIntersectsWith Method (TextSpan)

Determines whether span intersects this span. Two spans are considered to intersect if they have positions in common or the end of one span coincides with the start of the other span.

Namespace:  Microsoft.CodeAnalysis.Text
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public bool IntersectsWith(
	TextSpan span


Type: Microsoft.CodeAnalysis.TextTextSpan
The span to check.

Return Value

Type: Boolean
true if the spans intersect, otherwise false.
See Also