TX Text Control .NET Server

Culture Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public 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.");
}