Culture Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Gets or sets the control's culture. Affects date and time string formats, for example.
Syntax
public CultureInfo Culture { get; set; }Public Property Culture As 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