Culture Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the style's culture. When this property is null, the style has the neutral culture.
Syntax
public CultureInfo Culture { get; set; }Public Property Culture As CultureInfoExamples
The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.Culture.
FormattingStyle formattingStyle = new InlineStyle("Emphasis");
formattingStyle.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (formattingStyle.Culture != null)
{
Console.WriteLine("Formatting Style: Culture is available.");
}
textControl.InlineStyles.Add((InlineStyle)formattingStyle);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If formattingStyle.Culture IsNot Nothing Then
Console.WriteLine("Formatting Style: Culture is available.")
End If
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))