Freigeben über


AutomationProperties.SetAutomationControlType Methode

Definition

Legt die Microsoft.UI.Xaml.Automation.Peers.AutomationControlType für das angegebene UI-Element fest.

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)

Parameter

element
UIElement

Das UI-Element, für das der Steuerelementtyp der Benutzeroberflächenautomatisierung festgelegt werden soll.

value
AutomationControlType

Die Microsoft.UI.Xaml.Automation.Peers.AutomationControlType , die dem UI-Element zugewiesen werden soll.

Gilt für: