TX Text Control .NET Server

Format Property

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

Description

Gets and sets the format of the field. It must be a standard DateTime format string of the .NET Framework.

Syntax

public string Format { get; set; }

Examples

The following example uses DateField.Format to configure format as part of the date field workflow. The configured value is checked before the workflow continues.

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