TX Text Control .NET for WPF

NumericFormat Property

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

Description

Specifies a string format which is applied to numeric values. Is equivalent to the MS Word field flag “\#”.

Syntax

public string NumericFormat { get; set; }

Examples

The following example uses MergeField.NumericFormat to configure numeric format as part of the merge field workflow. The configured value is checked before the workflow continues.

mergeField.NumericFormat = "0.00";
if (!string.IsNullOrWhiteSpace(mergeField.NumericFormat))
{
    Console.WriteLine($"Numeric Format: {mergeField.NumericFormat}");
}