# MergeField.NumericFormat Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 20.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Fields > MergeField.NumericFormat Property
- **414 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/mergefield/numericformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/mergefield/numericformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/mergefield/numericformat-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public string NumericFormat { get; set; }
```

```vbnet
Public Property NumericFormat As String
```

### 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.

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

```vbnet
mergeField.NumericFormat = "0.00"
If Not String.IsNullOrWhiteSpace(mergeField.NumericFormat) Then
    Console.WriteLine($"Numeric Format: {mergeField.NumericFormat}")
End If
```

---

## Nearby

- **Previous:** [MergeField.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/mergefield/name-property/llms-full.txt)
- **Next:** [MergeField.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/mergefield/text-property/llms-full.txt)
