다음을 통해 공유


TextSpanHelper.ContainsInclusive Method

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

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

Syntax

‘선언
Public Shared Function ContainsInclusive ( _
    span As TextSpan, _
    line As Integer, _
    col As Integer _
) As Boolean
‘사용 방법
Dim span As TextSpan
Dim line As Integer
Dim col As Integer
Dim returnValue As Boolean

returnValue = TextSpanHelper.ContainsInclusive(span, _
    line, col)
public static bool ContainsInclusive(
    TextSpan span,
    int line,
    int col
)
public:
static bool ContainsInclusive(
    TextSpan span, 
    int line, 
    int col
)
static member ContainsInclusive : 
        span:TextSpan * 
        line:int * 
        col:int -> bool 
public static function ContainsInclusive(
    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 or equal to the start of the span and less than or equal to the end of the span. Returns false if the given position is entirely outside the span.

Remarks

Use this to see whether a position is in a span, including the ends of the span.

.NET Framework Security

See Also

Reference

TextSpanHelper Class

TextSpanHelper Members

Microsoft.VisualStudio.Package Namespace