Share via


AutomationPeer.GetLocalizedControlTypeCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetLocalizedControlType or an equivalent Microsoft UI Automation client API.

protected:
 virtual Platform::String ^ GetLocalizedControlTypeCore() = GetLocalizedControlTypeCore;
winrt::hstring GetLocalizedControlTypeCore();
protected virtual string GetLocalizedControlTypeCore();
function getLocalizedControlTypeCore()
Protected Overridable Function GetLocalizedControlTypeCore () As String

Returns

String

Platform::String

winrt::hstring

The type of the control, as a string that is localized to be suitable for direct presentation to users by assistive technology.

Remarks

This method is very rarely overridden by peers. So long as you provide a value for GetAutomationControlTypeCore, all the enumerated constant names from AutomationControlType are already available in localized form to Microsoft UI Automation clients. The necessary translated strings are part of the Microsoft UI Automation support in every Microsoft Windows client. However, if you specify Custom as the control type, you must support a localized control type string that represents the role of the element (for example, "color picker" for a custom control that enables users to choose and specify colors).

Applies to

See also