Click or drag to resize

TextSpanContains Method (TextSpan)



Determines whether span falls completely within this 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(
	TextSpan span
)

Parameters

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

Return Value

Type: Boolean
true if the specified span falls completely within this span, otherwise false.
See Also