Share via


TextSpanHelper.ContainsInclusive(TextSpan, Int32, Int32) Method

Definition

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

public:
 static bool ContainsInclusive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
public:
 static bool ContainsInclusive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
 static bool ContainsInclusive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
public static bool ContainsInclusive (Microsoft.VisualStudio.TextManager.Interop.TextSpan span, int line, int col);
static member ContainsInclusive : Microsoft.VisualStudio.TextManager.Interop.TextSpan * int * int -> bool
Public Shared Function ContainsInclusive (span As TextSpan, line As Integer, col As Integer) As Boolean

Parameters

span
TextSpan

[in] The TextSpan object that is being tested against.

line
Int32

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

col
Int32

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

Returns

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.

Applies to