次の方法で共有


AutomationProperties.SetAutomationControlType メソッド

定義

指定した DependencyObjectAutomationProperties.AutomationControlType 添付プロパティの値を設定します。

public:
 static void SetAutomationControlType(UIElement ^ element, AutomationControlType value);
 static void SetAutomationControlType(UIElement const& element, AutomationControlType const& value);
public static void SetAutomationControlType(UIElement element, AutomationControlType value);
function setAutomationControlType(element, value)
Public Shared Sub SetAutomationControlType (element As UIElement, value As AutomationControlType)

パラメーター

element
UIElement

プロパティを設定する DependencyObject

value
AutomationControlType

設定する UI オートメーション コントロールの種類。

Windows の要件

デバイス ファミリ
Windows 11 (10.0.22000.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v14.0 で導入)

適用対象