TX Text Control .NET for WPF

DateFormat Property

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

Description

Gets or sets the date format of the content control field.

Syntax

public string DateFormat { get; set; }

Examples

The following example uses DateContentControl.DateFormat to configure date format as part of the date content control workflow. The configured value is checked before the workflow continues.

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