TX Text Control .NET for Windows Forms

CharacterIndex Property

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

Description

Gets the one-based character index of the first invalid character in the numberformat string.

Syntax

public int CharacterIndex { get; }

Examples

The following example includes the character index value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Character Index: {numberFormatException.CharacterIndex}");
Console.WriteLine("Number Format Exception is ready for use.");

Limitations

Read only.