Culture 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 culture. Affects date and time string formats, for example.
Syntax
public System.Globalization.CultureInfo Culture { get; set; }Public Property Culture() As System.Globalization.CultureInfoExamples
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.");
}textControlSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If textControlSettings.Culture IsNot Nothing Then
Console.WriteLine("Culture is available for Text Control Settings.")
End If