Export (0) Print
Expand All
Expand Minimize

AutomationElement.CultureProperty Field

Identifies the culture property.

Namespace: System.Windows.Automation
Assembly: UIAutomationClient (in uiautomationclient.dll)

public static readonly AutomationProperty CultureProperty
public static final AutomationProperty CultureProperty
public static final var CultureProperty : AutomationProperty
Not applicable.

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

Within the Windows Presentation Foundation (WPF) framework, the default value reported will always be en-US because the Microsoft .NET Framework version 3.0 framework automatically defaults to English. For other user interface (UI) frameworks this property must be explicitly set or it will not be exposed.

This property can exist on a per-control basis, but typically is only available on an application level.

Return values of the property are of type CultureInfo.

The following example retrieves the current value of the property.

System.Globalization.CultureInfo culture =
   autoElement.GetCurrentPropertyValue(AutomationElement.CultureProperty)
   as System.Globalization.CultureInfo;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft