TX Text Control .NET for WPF

Number Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the character's number. The first character has the number 1.

Syntax

public int Number { get; }

Examples

The following example examines the first text char in a short document by using TextChar.Number.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
TextChar textChar = textControl.TextChars[1];

Console.WriteLine($"Number: {textChar.Number}");
Console.WriteLine("Text Char is ready for use.");

Limitations

Read only.