Freigeben über


Source.ScanToNonWhitespaceChar(Int32) Method

Definition

Return the column position of 1st non whitespace character on line

public:
 int ScanToNonWhitespaceChar(int line);
public:
 int ScanToNonWhitespaceChar(int line);
int ScanToNonWhitespaceChar(int line);
public int ScanToNonWhitespaceChar (int line);
member this.ScanToNonWhitespaceChar : int -> int
Public Function ScanToNonWhitespaceChar (line As Integer) As Integer

Parameters

line
Int32

Returns

Remarks

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.

Applies to