Click or drag to resize
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.Commenter
Assembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax
protected static int ScanToNonWhitespaceChar(
	ITextSnapshotLine line
)

Parameters

line
Type: Microsoft.VisualStudio.TextITextSnapshotLine
The line to examine.

Return Value

Type: Int32

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.

Exceptions
ExceptionCondition
ArgumentNullExceptionIf line is .
See Also