DataSourceCulture Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property DataSourceCulture As CultureInfoExamples
The following example uses MailMerge.DataSourceCulture to configure data source culture as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.DataSourceCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (mailMerge.DataSourceCulture != null)
{
Console.WriteLine("Mail Merge: Data Source Culture is available.");
}mailMerge.DataSourceCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If mailMerge.DataSourceCulture IsNot Nothing Then
Console.WriteLine("Mail Merge: Data Source Culture is available.")
End If