UICulture Property
- 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 user interface culture. Affects the string resource language.
Syntax
public System.Globalization.CultureInfo UICulture { get; set; }Public Property UICulture() As System.Globalization.CultureInfoExamples
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.");
}textControlSettings.UICulture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If textControlSettings.UICulture IsNot Nothing Then
Console.WriteLine("UICulture is available for Text Control Settings.")
End If