Export (0) Print
Expand All
Expand Minimize

AutomationPeer.GetLocalizedControlType Method

Gets a localized string that represents the control type, for the control that is associated with this automation peer. The localized string parallels a AutomationControlType value.

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

public string GetLocalizedControlType()

Return Value

Type: System.String
A string that reports the localized type of the associated control.

This implementation does nothing more than calling GetLocalizedControlTypeCore.

A UI Automation client such as a screen reader might use the GetLocalizedControlType value as a suffix to the UI Automation Name value. For example, if a Button has content of "OK", and that content is promoted by Button peer behavior to be the name, the screen reader might read out "OK Button". The "OK" portion comes from a UI Automation Name, the "Button" portion comes from a GetLocalizedControlType value or a similar UI Automation technique for reading LocalizedControlType.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft