Version

TextDocumentSnapshot Class Members

The following tables list the members exposed by TextDocumentSnapshot.

Public Properties
 NameDescription
Public PropertyDocumentReturns the associated TextDocument (read-only)  
Public PropertyItemReturns the character at the specified position(read-only).  
Public PropertyLengthReturns the length of the snapshot in characters (read-only).  
Public PropertyLineCountReturns the number of lines in the shapshot (read-only).  
Public PropertyTokenCountReturns the number of Tokens in the shapshot (read-only).  
Public PropertyVersionReturns the version of the document that this snapshot represents (read-only)  
Public Methods
 NameDescription
Public MethodCreateScannerCreates a new instance of a TextDocumentSnapshotScanner  
Public MethodFindFinds an instance of text in the span that matches the search criteria.  
Public MethodFindAllFinds all instances of text in the text span that matches the search criteria.  
Public MethodGetLinesReturns a object that can enumerate SnapshotLineInfos.  
Public MethodGetTextOverloaded. Returns the string representation of this snapshot.  
Public MethodGetTokenCountReturns the number of Infragistics.Documents.Parsing.Tokens in the shapshot (read-only).  
Public MethodGetTokensOverloaded. Returns a object that can enumerate Infragistics.Documents.Parsing.Tokens.  
Public MethodIsCompatibleWithDetermines if 2 snapshots are compatible (i.e. have the same root buffer)  
Public MethodLineFromIndexReturns the corresponding SnapshotLineInfo from a zero-based index.  
Public MethodLineFromOffsetReturns the corresponding SnapshotLineInfo from a zero-based offset value.  
Public MethodLineIndexFromOffsetReturns the corresponding zero-based line index from a zero-based offset value.  
Public MethodLocationFromOffsetReturns the corresponding line and character location from a zero-based offset value.  
Public MethodOffsetFromLocationReturns the corresponding overall zero-based offset from a line and character location.  
Public MethodTokenFromOffsetReturns the corresponding Infragistics.Documents.Parsing.Token from a zero-based offset value.  
Public MethodWordFromOffsetReturns the Word from a zero-based offset value.  
See Also