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