Click or drag to resize

TextSpanOverlapsWith Method

Determines whether span overlaps this span. Two spans are considered to overlap if they have positions in common and neither is empty. Empty spans do not overlap with any 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 OverlapsWith(
	TextSpan span


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

Return Value

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