TX Text Control .NET Server

Culture Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Gets or sets the control's culture. Affects date and time string formats, for example.

Syntax

public System.Globalization.CultureInfo Culture { get; set; }

Examples

In the current ASP.NET Core integration, Culture is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (textControlSettings.Culture != null)
{
    Console.WriteLine("Culture is available for Text Control Settings.");
}