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 指定為控制項類型,則必須支援當地語系化的控制項類型字串,此字串代表元素 (的角色,例如,可讓使用者選擇和指定色彩) 的自訂控制項。

適用於

另請參閱