EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

AutomationPeer.GetLocalizedControlType Method

July 28, 2014

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Mostra:
© 2014 Microsoft