Source::ScanToNonWhitespaceChar Method (Int32)
Visual Studio 2015
Returns the offset of the first non-whitespace character on the given line.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- line
-
Type:
System::Int32
The line number to examine.
This helper method is used primarily by the comment/uncomment methods to skip any leading whitespace on a line. This method can throw an exception if the line number is out of bounds.
If the line is empty or contains only whitespace, the offset returned equals the length of the line.
Show: