NumericFormat Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
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; }Public Property NumericFormat As StringExamples
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}");
}mergeField.NumericFormat = "0.00"
If Not String.IsNullOrWhiteSpace(mergeField.NumericFormat) Then
Console.WriteLine($"Numeric Format: {mergeField.NumericFormat}")
End If