Version

Search Results

Find Method

Finds an instance of text in the span that matches the search criteria. Syntax Parameters criteria The search criteriastartOffset The start offset relative to the beginning of the document.wrapIfNotFound if true continue the search by wrapping if the end is reached without a match.spanToSearch An optional span to ...

FindAll Method

Finds all instances of text in the text span that matches the search criteria. Syntax Parameters criteria The search criteriaspanToSearch On optional span to limit the search to. Return Value A TextSearchResultInfo object containing the results of the operation.

GetLines Method

Returns a object that can enumerate SnapshotLineInfos. Syntax Parameters startLineIndex The zero-based line offset.enumerateBackwards True to enumerate backwards from the startLineIndex. Return Value A forward or backward enumerator Remarks Note: even though the snapshot is thread-safe, the enumerator is not. Ther...

GetText() Method

Returns the string representation of this snapshot. Syntax Return Value The string representation of this snapshot.

GetText(Int32) Method

Returns the specified substring. Syntax Parameters start The zero-based position of the first character in the string to be returned. Return Value The specified substring.

GetText(Int32,Int32) Method

Returns the specified substring. Syntax Parameters start The zero-based position of the first character in the string to be returned.length The length of the string to be returned. Return Value The specified substring.

GetText(TextSpan) Method

Returns the specified substring. Syntax Parameters span The span of the text. Return Value The specified substring.

GetText Method (TextDocumentSnapshot)

Returns the string representation of this snapshot. Overload List

GetTokenCount Method

Returns the number of Infragistics.Documents.Parsing.Tokens in the shapshot (read-only). Syntax Parameters splitMultilineTokensByLine Indicates whether multiline tokens should be split so no token counted spans multiple line.

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

Returns a object that can enumerate Infragistics.Documents.Parsing.Tokens. Syntax Parameters startOffset The offset at which to start 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 ...