TX Text Control .NET for WPF

Culture Property

Property|Introduced in 27.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}

Limitations

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.