TX Text Control .NET for WPF

Culture Property

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

Description

Gets or sets the format provider for numerical value comparison. The default value for this property is the invariant culture.

Syntax

public CultureInfo Culture { get; set; }

Examples

The following example uses SortingInstruction.Culture to configure culture as part of the sorting instruction workflow. The configured value is checked before the workflow continues.

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