AutomationPeer.GetLocalizedControlTypeCore 方法

定义

在 Microsoft UI 自动化客户端调用 GetLocalizedControlType 或等效的 Microsoft UI 自动化客户端 API 时提供对等行为。

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

返回

String

Platform::String

winrt::hstring

控件的类型,作为本地化为适合通过辅助技术向用户直接呈现的字符串。

注解

此方法很少被对等方重写。 只要为 GetAutomationControlTypeCore 提供值,AutomationControlType 中的所有枚举常量名称就已以本地化形式提供给 Microsoft UI 自动化客户端。 在每台 Microsoft Windows 客户端中,Microsoft UI 自动化支持的必要转换字符串是一部分。 但是,如果将 Custom 指定为控件类型,则必须支持一个本地化的控件类型字符串,该字符串表示元素 (例如自定义控件的“颜色选取器”,使用户能够) 选择和指定颜色。

适用于

另请参阅