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

Represents an item in a text map for proofing purposes.

Definition

Namespace:Telerik.Windows.Documents.Proofing

Assembly:Telerik.Windows.Documents.Proofing.dll

Syntax:

C#
public class TextMapItem

Inheritance: objectTextMapItem

Constructors

Initializes a new instance of the TextMapItem class with the specified parameters.

C#
public TextMapItem(int indexInRun, Run run, int length, bool containsDigits, bool isUppercase, bool containsOnlySeparators, bool containsLetters)
Parameters:indexInRunint

The zero-based index within the Run where this text map item starts.

runRun

The Run object that contains the text segment.

lengthint

The length of the text map item within the run.

containsDigitsbool

A value indicating whether the text map item contains any digits.

isUppercasebool

A value indicating whether the text map item is in uppercase.

containsOnlySeparatorsbool

A value indicating whether the text map item contains only separator characters.

containsLettersbool

A value indicating whether the item contains letters

Properties

Determines whether the specified text map item contains any digits.

C#
public bool ContainsDigits { get; set; }

Determines whether the TextMapItem contains any alphabetic letters.

C#
public bool ContainsLetters { get; set; }

Determines whether the current TextMapItem contains only separator characters.

C#
public bool ContainsOnlySeparators { get; set; }

Gets the index of the text map item within its run.

C#
public int IndexInRun { get; set; }

Gets a value indicating whether the current text map item is the last item in a word.

C#
public bool IsLastInWord { get; set; }

Gets a value indicating whether the text represented by the TextMapItem is in uppercase.

C#
public bool IsUppercase { get; set; }

Gets the length of the text map item.

C#
public int Length { get; set; }

Run

Run

Represents a run of text within a text map item. This class encapsulates the formatting and content of a segment of text, allowing for rich text manipulation and display.

C#
public Run Run { get; set; }

Gets or sets the text content of the TextMapItem.

C#
public string Text { get; }