Version

SnapshotLineInfo Structure Members

The following tables list the members exposed by SnapshotLineInfo.

Public Properties
 NameDescription
Public PropertyLengthReturns the length of all the text in the line including carriage return and line feed characters. (read-only).  
Public PropertyLineIndexReturns the zero-based index of the line (read-only).  
Public PropertyLineNumberReturns the 1-based line number (read-only).  
Public PropertyOverallOffsetReturns the zero-based offset of this line from the beginning of the document (read-only).  
Public PropertySnapshotReturns the associated TextDocumentSnapshot (read-only).  
Public PropertyTextLengthReturns the length of all the text in the line excluding carriage return and line feed characters. (read-only).  
Public PropertyTokenCountReturns the total number of tokens in the line including the line terminator token (read-only).  
Public Methods
 NameDescription
Public MethodContainsReturns true if the token is contained in this line.  
Public MethodEqualsOverloaded. Compares the specified object to this object to see if they are equivalent.  
Public MethodGetCharacterReturns the character at a specific offset in the line.  
Public MethodGetHashCodeReturns the hash code of the object.  
Public MethodGetIndentReturns the line indent.  
Public MethodGetTextReturns the concatenated text from all the Tokens that make up the line  
Public MethodGetTokenAtIndexReturns the token at a specific index.  
Public MethodGetTokenAtOffsetReturns the token that contains a specific character.  
Public MethodIndexOfReturns the zero-based index of a token.  
Public MethodIsSameAsReturns true if the specified SnapshotLineInfo represents the same line content.  
Public MethodToStringReturns a string representation of the object.  
Public Operators
public Operator Equality Compares the values of two SnapshotLineInfo structures for equality
public Operator Inequality Compares the values of two SnapshotLineInfo structures for inequality
See Also