TX Text Control .NET Server

UICulture 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 user interface culture. Affects the string resource language.

Syntax

public CultureInfo UICulture { get; set; }

Examples

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

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