Class DocumentTextMap
Represents a text map of a RadDocument.
Inheritance
Namespace: Telerik.Windows.Documents.TextSearch
Assembly: Telerik.Windows.Documents.dll
Syntax
public class DocumentTextMap : List<TextMapItem>
Constructors
DocumentTextMap(RadDocument)
Initializes a new instance of the DocumentTextMap class.
Declaration
public DocumentTextMap(RadDocument document)
Parameters
RadDocument
document
The document. |
DocumentTextMap(RadDocument, Func<DocumentTextMap.TextItem, Boolean>)
Initializes a new instance of the DocumentTextMap class.
Declaration
public DocumentTextMap(RadDocument document, Func<DocumentTextMap.TextItem, bool> filter)
Parameters
RadDocument
document
The document. |
System.Func<DocumentTextMap.TextItem, System.Boolean>
filter
The filter. |
Properties
Document
Gets the document.
Declaration
public RadDocument Document { get; }
Property Value
RadDocument
The document. |
Text
Gets the text.
Declaration
public string Text { get; }
Property Value
System.String
The text. |
Methods
GetListOfWords()
Gets the list of words in the document.
Declaration
public IEnumerable<WordInfo> GetListOfWords()
Returns
System.Collections.Generic.IEnumerable<WordInfo>
List of words in the document. |
InitMap(DocumentPosition, DocumentPosition)
Initializes the map.
Declaration
public void InitMap(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
DocumentPosition
fromPosition
Start position. |
DocumentPosition
toPosition
End position. |
MapFromIndexInText(Int32, Int32)
Maps from a specified index in text.
Declaration
public TextRange MapFromIndexInText(int intIndex, int length)
Parameters
System.Int32
intIndex
The index in the text. |
System.Int32
length
The length. |
Returns
TextRange
Mapped TextRange. |
TrimWord(String)
Deprecated.
Declaration
public static string TrimWord(string word)
Parameters
System.String
word
|
Returns
System.String
|
TrimWordEnd(String, Boolean)
Deprecated.
Declaration
public static string TrimWordEnd(string word, bool ignoreDigits = true)
Parameters
System.String
word
|
System.Boolean
ignoreDigits
|
Returns
System.String
|
TrimWordStart(ref String, Boolean)
Deprecated.
Declaration
public static int TrimWordStart(ref string word, bool ignoreDigits = true)
Parameters
System.String
word
|
System.Boolean
ignoreDigits
|
Returns
System.Int32
|