Version

TextDocumentSnapshotScanner Class Members

The following tables list the members exposed by TextDocumentSnapshotScanner.

Public Properties
 NameDescription
Public PropertyCurrentCharacterReturns the character at the CurrentOffset (read-only).  
Public PropertyCurrentLineReturns the Line containing the CurrentOffset (read-only).  
Public PropertyCurrentOffsetReturns/sets the zero-based character offset.  
Public PropertyCurrentTokenReturns the Token at the CurrentOffset (read-only).  
Public PropertyCurrentWordReturns the Word at the CurrentOffset (read-only).  
Public PropertySnapshotReturns the snapshot that this scanner was created for (read-only)  
Public Methods
 NameDescription
Public MethodPeekNextTokenPeeks ahead and returns the next token without changing the CurrentOffset.  
Public MethodPeekNextWordPeeks ahead and returns the next word without changing the CurrentOffset.  
Public MethodPeekPreviousTokenPeeks backward and returns the previous token without changing the CurrentOffset.  
Public MethodPeekPreviousWordPeeks backward and returns the previous word without changing the CurrentOffset.  
Public MethodSeekToEndSets the CurrentOffset to the length minus one.  
Public MethodSeekToLineOverloaded. Sets the CurrentOffset to the beginning of a line.  
Public MethodSeekToStartSets the CurrentOffset to the zero.  
Public MethodSeekToTokenSets the CurrentOffset to the beginning or end of a Token.  
Public MethodSeekToWordSets the CurrentOffset to the beginning or end of a Word within a Token.  
See Also