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

Represents a text map of a RadDocument.

Definition

Namespace:Telerik.Windows.Documents.TextSearch

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
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

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.