TextPatternIdentifiers.CultureAttribute Field


Identifies the Culture (CultureInfo) attribute of a text range down to the sub-language level; for example, French–Switzerland (fr-CH) instead of French (fr).

Namespace:   System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

public static readonly AutomationTextAttribute CultureAttribute

This identifier is used by UI Automation providers. UI Automation client applications should use the equivalent field in TextPattern.

Values for this attribute are of type CultureInfo.

See CultureInfo in the Microsoft .NET Framework for more detail on the language code format.

The default value is the language of the application user interface (UI).


There might be cases where the server does not support the language tag or authors cannot use it. In those cases the default applies.

.NET Framework
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top