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