TX Text Control .NET for WPF

Culture Property

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

Description

Specifies a CultureInfo instance that supplies culture-specific formatting information which is used when applying the formatting string to the field content. The default value for this property is the current thread culture.

Syntax

public CultureInfo Culture { get; set; }

Examples

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

dateField.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (dateField.Culture != null)
{
    Console.WriteLine("Date Field: Culture is available.");
}