Class
DocumentTextMap

Represents a text map of a RadDocument.

Definition

Namespace:Telerik.Windows.Documents.TextSearch

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class DocumentTextMap : List<TextMapItem>, IList<TextMapItem>, ICollection<TextMapItem>, IList, ICollection, IReadOnlyList<TextMapItem>, IReadOnlyCollection<TextMapItem>, IEnumerable<TextMapItem>, IEnumerable

Inheritance: objectList<TextMapItem>DocumentTextMap

Implements: ICollectionICollection<TextMapItem>IEnumerableIEnumerable<TextMapItem>IListIList<TextMapItem>IReadOnlyCollection<TextMapItem>IReadOnlyList<TextMapItem>

Inherited Members List<TextMapItem>.Add(TextMapItem)List<TextMapItem>.AddRange(IEnumerable<TextMapItem>)List<TextMapItem>.AsReadOnly()List<TextMapItem>.BinarySearch(int, int, TextMapItem, IComparer<TextMapItem>)List<TextMapItem>.BinarySearch(TextMapItem)List<TextMapItem>.BinarySearch(TextMapItem, IComparer<TextMapItem>)List<TextMapItem>.Clear()List<TextMapItem>.Contains(TextMapItem)List<TextMapItem>.ConvertAll<TOutput>(Converter<TextMapItem, TOutput>)List<TextMapItem>.CopyTo(TextMapItem[])List<TextMapItem>.CopyTo(int, TextMapItem[], int, int)List<TextMapItem>.CopyTo(TextMapItem[], int)List<TextMapItem>.EnsureCapacity(int)List<TextMapItem>.Exists(Predicate<TextMapItem>)List<TextMapItem>.Find(Predicate<TextMapItem>)List<TextMapItem>.FindAll(Predicate<TextMapItem>)List<TextMapItem>.FindIndex(Predicate<TextMapItem>)List<TextMapItem>.FindIndex(int, Predicate<TextMapItem>)List<TextMapItem>.FindIndex(int, int, Predicate<TextMapItem>)List<TextMapItem>.FindLast(Predicate<TextMapItem>)List<TextMapItem>.FindLastIndex(Predicate<TextMapItem>)List<TextMapItem>.FindLastIndex(int, Predicate<TextMapItem>)List<TextMapItem>.FindLastIndex(int, int, Predicate<TextMapItem>)List<TextMapItem>.ForEach(Action<TextMapItem>)List<TextMapItem>.GetEnumerator()List<TextMapItem>.GetRange(int, int)List<TextMapItem>.Slice(int, int)List<TextMapItem>.IndexOf(TextMapItem)List<TextMapItem>.IndexOf(TextMapItem, int)List<TextMapItem>.IndexOf(TextMapItem, int, int)List<TextMapItem>.Insert(int, TextMapItem)List<TextMapItem>.InsertRange(int, IEnumerable<TextMapItem>)List<TextMapItem>.LastIndexOf(TextMapItem)List<TextMapItem>.LastIndexOf(TextMapItem, int)List<TextMapItem>.LastIndexOf(TextMapItem, int, int)List<TextMapItem>.Remove(TextMapItem)List<TextMapItem>.RemoveAll(Predicate<TextMapItem>)List<TextMapItem>.RemoveAt(int)List<TextMapItem>.RemoveRange(int, int)List<TextMapItem>.Reverse()List<TextMapItem>.Reverse(int, int)List<TextMapItem>.Sort()List<TextMapItem>.Sort(IComparer<TextMapItem>)List<TextMapItem>.Sort(int, int, IComparer<TextMapItem>)List<TextMapItem>.Sort(Comparison<TextMapItem>)List<TextMapItem>.ToArray()List<TextMapItem>.TrimExcess()List<TextMapItem>.TrueForAll(Predicate<TextMapItem>)List<TextMapItem>.CapacityList<TextMapItem>.CountList<TextMapItem>.this[int]

Constructors

DocumentTextMap(RadDocument)

Initializes a new instance of the DocumentTextMap class.

Declaration

cs-api-definition
public DocumentTextMap(RadDocument document)

Parameters

document

RadDocument

The document.

DocumentTextMap(RadDocument, Func<TextItem, bool>)

Initializes a new instance of the DocumentTextMap class.

Declaration

cs-api-definition
public DocumentTextMap(RadDocument document, Func<DocumentTextMap.TextItem, bool> filter)

Parameters

document

RadDocument

The document.

filter

Func<DocumentTextMap.TextItem, bool>

The filter.

Properties

Document

Gets the document.

Declaration

cs-api-definition
public RadDocument Document { get; }

Property Value

RadDocument

The document.

Text

Gets the text.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string

The text.

Methods

GetListOfWords()

Gets the list of words in the document.

Declaration

cs-api-definition
public IEnumerable<WordInfo> GetListOfWords()

Returns

IEnumerable<WordInfo>

List of words in the document.

InitMap(DocumentPosition, DocumentPosition)

Initializes the map.

Declaration

cs-api-definition
public void InitMap(DocumentPosition fromPosition, DocumentPosition toPosition)

Parameters

fromPosition

DocumentPosition

Start position.

toPosition

DocumentPosition

End position.

MapFromIndexInText(int, int)

Maps from a specified index in text.

Declaration

cs-api-definition
public TextRange MapFromIndexInText(int intIndex, int length)

Parameters

intIndex

int

The index in the text.

length

int

The length.

Returns

TextRange

Mapped TextRange.