Click or drag to resize

TextSpanContains Method (Int32)



Determines whether the position lies within the span.

Namespace:  Microsoft.CodeAnalysis.Text
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public bool Contains(
	int position
)

Parameters

position
Type: SystemInt32
The position to check.

Return Value

Type: Boolean
true if the position is greater than or equal to Start and strictly less than End, otherwise false.
See Also