CommandBarFlyoutCommandBarAutomationProperties.GetControlType Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère le type de contrôle de l’objet spécifié.
Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).
public:
static AutomationControlType GetControlType(UIElement ^ element);
static AutomationControlType GetControlType(UIElement const& element);
public static AutomationControlType GetControlType(UIElement element);
Public Shared Function GetControlType (element As UIElement) As AutomationControlType
Paramètres
- element
- UIElement
Objet pour lequel obtenir le type de contrôle.
Retours
Type de contrôle pour l’objet spécifié.