Culture Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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))