共用方式為


AutomationProperties.SetLocalizedControlType(DependencyObject, String) 方法

定義

設定當地語系化字串,這個字串表示指定控制項的類型。

public:
 static void SetLocalizedControlType(DependencyObject ^ element, Platform::String ^ value);
 static void SetLocalizedControlType(DependencyObject const& element, winrt::hstring const& value);
public static void SetLocalizedControlType(DependencyObject element, string value);
function setLocalizedControlType(element, value)
Public Shared Sub SetLocalizedControlType (element As DependencyObject, value As String)

參數

element
DependencyObject

要為其設定型別的控制項。

value
String

Platform::String

winrt::hstring

當地語系化字串,表示 專案 參數所指定的控制項類型。

備註

提供一種機制來改變朗讀程式所讀取的控制項類型。 這在將自訂 UI 描述為 「功能表」或「按鈕」時很有説明,其中預設控制項不會使用或從一般控制項建置的複合 UI 用來建立新功能。

適用於