TextSpanHelper::ValidCoord Method (Source^, Int32, Int32)
Visual Studio 2015
Determines whether the given position is valid for the given source buffer.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- src
-
Type:
Microsoft.VisualStudio.Package::Source^
[in] A Source object to validate against. This can be a null value. See Remarks.
- line
-
Type:
System::Int32
[in] The line index of the position to test.
- pos
-
Type:
System::Int32
[in] The column index of the position to test.
Return Value
Type: System::BooleanReturns true if the given position lies within the given source buffer; otherwise, returns false.
The line parameter must be greater than or equal to 0 and less than the number of lines in the source buffer. The pos parameter must be greater than or equal to 0 and less than the number of characters on the specified line.
If the src parameter is a null value, then the position is tested only for negative values.
Show: