Version

Search Results

GetTokens(SnapshotSpan,Func<Token,Boolean>,Boolean,Boolean) Method

Returns a object that can enumerate Infragistics.Documents.Parsing.Tokens. Syntax Parameters span The span of text to restrict the token enumeration.filter A function that can decide which tokens get returned from the enumerator.enumerateBackwards True to enumerate backwards from the end of the span to the beginni...

GetTokens(TextSpan,Func<Token,Boolean>,Boolean,Boolean) Method

Returns a object that can enumerate Infragistics.Documents.Parsing.Tokens. Syntax Parameters span The span of text to restrict the token enumeration.filter A function that can decide which tokens get returned from the enumerator.enumerateBackwards True to enumerate backwards from the end of the span to the beginni...

GetTokens Method

Returns a object that can enumerate Infragistics.Documents.Parsing.Tokens. Overload List

IsCompatibleWith Method

Determines if 2 snapshots are compatible (i.e. have the same root buffer) Syntax Parameters other The snapshot to compare. Return Value true if both snapshots have the same root buffer, otherwise false. Remarks Note: if snapshots are not compatible then SnapshotPoints and SnapshotSpans can not be translated betwee...

Item Property (TextDocumentSnapshot)

Returns the character at the specified position(read-only). Syntax Parameters position

Length Property (TextDocumentSnapshot)

Returns the length of the snapshot in characters (read-only). Syntax

LineCount Property

Returns the number of lines in the shapshot (read-only). Syntax

LineFromIndex Method

Returns the corresponding SnapshotLineInfo from a zero-based index. Syntax Parameters index The zero-based index of the line.. Return Value The corresponding SnapshotLineInfo. Exceptions Exception Description System.ArgumentOutOfRangeException If index is less than zero or greater than or equal to the LineCount.

LineFromOffset Method

Returns the corresponding SnapshotLineInfo from a zero-based offset value. Syntax Parameters offset The zero-based offset relative to the beginning of the document for this snapshot. Return Value The corresponding SnapshotLineInfo. Exceptions Exception Description System.ArgumentOutOfRangeException If offset is le...

LineIndexFromOffset Method

Returns the corresponding zero-based line index from a zero-based offset value. Syntax Parameters offset The zero-based offset relative to the beginning of the document for this snapshot. Return Value The corresponding zero based line index. Exceptions Exception Description System.ArgumentOutOfRangeException If of...