Culture Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies the culture to receive a language related image. If no specific image is defined for the culture, the related image for English (represented by the ISO 639 two-letter lowercase culture code "en") is returned by the corresponding method. The default value is CultureInfo.CurrentUICulture.
Syntax
public CultureInfo Culture { get; set; }Public Property Culture As CultureInfoExamples
The following example uses ImageSourceSettings.Culture to configure culture as part of the image source settings workflow. The configured value is checked before the workflow continues.
imageSourceSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
if (imageSourceSettings.Culture != null)
{
Console.WriteLine("Image Source Settings: Culture is available.");
}imageSourceSettings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US")
If imageSourceSettings.Culture IsNot Nothing Then
Console.WriteLine("Image Source Settings: Culture is available.")
End IfLimitations
This property only affects images with the following identifiers:
TXITEM_Bold for English ("en"), French ("fr"), German ("de") and Spanish ("es") when using the ResourceProvider.GetSmallIcon method.
TXITEM_Italic for English ("en"), French ("fr"), German ("de") and Spanish ("es") when using the ResourceProvider.GetSmallIcon method.
TXITEM_Underline for English ("en"), French ("fr"), German ("de") and Spanish ("es") when using the ResourceProvider.GetSmallIcon method.