TX Text Control .NET Server

DataSourceCulture Property

Property|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Specifies the culture with which numerical and date / time values coming from the data source are parsed. The default value for this property is the current thread culture.

Syntax

public CultureInfo DataSourceCulture { get; set; }

Examples

The following example uses DataSourceManager.DataSourceCulture to configure data source culture as part of the data source manager workflow. The configured value is checked before the workflow continues.

dataSourceManager.DataSourceCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (dataSourceManager.DataSourceCulture != null)
{
    Console.WriteLine("Data Source Manager: Data Source Culture is available.");
}