AutomationPeer.GetLocalizedControlType Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Function GetLocalizedControlType As String
public string GetLocalizedControlType()

Return Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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