| FormatCommenterScanToNonWhitespaceChar Method |
Gets the index of the first non-whitespace character on a line, or the length of the line if the line is
empty or only contains whitespace.
Namespace: Tvl.VisualStudio.Text.CommenterAssembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax protected static int ScanToNonWhitespaceChar(
ITextSnapshotLine line
)
Protected Shared Function ScanToNonWhitespaceChar (
line As ITextSnapshotLine
) As Integer
protected:
static int ScanToNonWhitespaceChar(
ITextSnapshotLine^ line
)
static member ScanToNonWhitespaceChar :
line : ITextSnapshotLine -> int
Parameters
- line
- Type: Microsoft.VisualStudio.TextITextSnapshotLine
The line to examine.
Return Value
Type:
Int32The index of the first non-whitespace character on a line.
-or-
The length of the line if the line is empty or only contains whitespace.
Exceptions See Also