TextSpanHelper.ContainsExclusive Method

Determines whether the given position is contained in the given span, not including the start and end points.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Shared Function ContainsExclusive ( _
    span As TextSpan, _
    line As Integer, _
    col As Integer _
) As Boolean
'Usage
Dim span As TextSpan 
Dim line As Integer 
Dim col As Integer 
Dim returnValue As Boolean 

returnValue = TextSpanHelper.ContainsExclusive(span, _
    line, col)
public static bool ContainsExclusive(
    TextSpan span,
    int line,
    int col
)
public:
static bool ContainsExclusive(
    TextSpan span, 
    int line, 
    int col
)
public static function ContainsExclusive(
    span : TextSpan, 
    line : int, 
    col : int
) : boolean

Parameters

  • line
    Type: System.Int32

    [in] The line index of the position to test.

  • col
    Type: System.Int32

    [in] The column index of the position to test.

Return Value

Type: System.Boolean
Returns true if the given position is greater than the start of the span and less than the end of the span. Returns false if the position is exactly equal to the start or end of the span or the position is outside the span.

Remarks

Use this method to see whether a position is in a span, but not at the starting or ending point of the span.

.NET Framework Security

See Also

Reference

TextSpanHelper Class

TextSpanHelper Members

Microsoft.VisualStudio.Package Namespace