Culture Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property Culture As CultureInfoExamples
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.");
}dateField.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If dateField.Culture IsNot Nothing Then
Console.WriteLine("Date Field: Culture is available.")
End If