Version

Search Results

GetHashCode Method (SnapshotLineInfo)

Returns the hash code of the object. Syntax Return Value A hash code for this instance

GetIndent Method

Returns the line indent. Syntax Return Value The number of columns that the line is indented by (i.e. the amount of whitespace before the first non-tab or space character).

GetText Method (SnapshotLineInfo)

Returns the concatenated text from all the Tokens that make up the line Syntax Parameters includeNewLine If true the returned string will include any carriage return/line feed characters at the end of the line. Return Value A string representing the complete text of the line.

GetTokenAtIndex Method

Returns the token at a specific index. Syntax Parameters tokenIndex The zero-based index of the token.splitMultilineTokensByLine Indicates whether multiline tokens should be split so the the token returned does not span multiple line. Return Value The token in question. Exceptions Exception Description System.Argu...

GetTokenAtOffset Method

Returns the token that contains a specific character. Syntax Parameters charOffset The zero-based offset of the character from the beginning of the line.splitMultilineTokensByLine Indicates whether multiline tokens should be split so the the token returned does not span multiple line. Return Value The token in que...

IndexOf Method (SnapshotLineInfo)

Returns the zero-based index of a token. Syntax Parameters token The token to test. Return Value The zero-based index or -1 if the token is not in the line.

IsSameAs Method

Returns true if the specified SnapshotLineInfo represents the same line content. Syntax Parameters snapshotLineInfo The SnapshotLineInfo to check. Return Value True if the specified SnapshotLineInfo represents the same line content, otherwise false. Remarks Note: this method will return true if the line content is...

Length Property (SnapshotLineInfo)

Returns the length of all the text in the line including carriage return and line feed characters. (read-only). Syntax

LineIndex Property

Returns the zero-based index of the line (read-only). Syntax

LineNumber Property (SnapshotLineInfo)

Returns the 1-based line number (read-only). Syntax Remarks Note: this is one more than the LineIndex value.