New to Telerik UI for WinFormsStart a free 30-day trial

Represents a text map of a RadDocument.

Definition

Namespace:Telerik.WinForms.Documents.TextSearch

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentTextMap : List<TextMapItem>, IList, ICollection, IEnumerable

Inheritance: objectList<TextMapItem>DocumentTextMap

Implements: ICollectionIEnumerableIList

Constructors

Initializes a new instance of the DocumentTextMap class.

C#
public DocumentTextMap(RadDocument document, Func<DocumentTextMap.TextItem, bool> filter)
Parameters:documentRadDocument

The document.

filterFunc<DocumentTextMap.TextItem, bool>

The filter.

Initializes a new instance of the DocumentTextMap class.

C#
public DocumentTextMap(RadDocument document)
Parameters:documentRadDocument

The document.

Properties

Gets the document.

C#
public RadDocument Document { get; }
Property Value:

The document.

Gets the text.

C#
public string Text { get; }
Property Value:

The text.

Methods

Gets the list of words in the document.

C#
public IEnumerable<WordInfo> GetListOfWords()
Returns:

IEnumerable<WordInfo>

List of words in the document.

Initializes the map.

C#
public void InitMap(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters:fromPositionDocumentPosition

Start position.

toPositionDocumentPosition

End position.

Maps from a specified index in text.

C#
public TextRange MapFromIndexInText(int intIndex, int length)
Parameters:intIndexint

The index in the text.

lengthint

The length.

Returns:

TextRange

Mapped TextRange.