Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the given position is valid for the given source buffer.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Syntax
'Declaration
Public Shared Function ValidCoord ( _
src As Source, _
line As Integer, _
pos As Integer _
) As Boolean
public static bool ValidCoord(
Source src,
int line,
int pos
)
public:
static bool ValidCoord(
Source^ src,
int line,
int pos
)
static member ValidCoord :
src:Source *
line:int *
pos:int -> bool
public static function ValidCoord(
src : Source,
line : int,
pos : int
) : boolean
Parameters
src
Type: Microsoft.VisualStudio.Package.Source[in] A Source object to validate against. This can be a null value. See Remarks.
line
Type: Int32[in] The line index of the position to test.
pos
Type: Int32[in] The column index of the position to test.
Return Value
Type: Boolean
Returns true if the given position lies within the given source buffer; otherwise, returns false.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.