TX Text Control .NET Server

NumberFormatException Class

Class|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll
Inherits
  1. Exception
  2. NumberFormatException

Description

The NumberFormatException class informs about an invalid syntax of a numberformat used to display a formula result.

Syntax

public class NumberFormatException : Exception

Examples

The following example includes the message value from a Number Format Exception object in application diagnostics. The created object is then available to the surrounding document workflow.

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

Members

Properties

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