IVsProfferCommands3.AddCommandBarControl(String, Object, UInt32, UInt32, Object) 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.
Ajoute un contrôle à une barre de commandes.
public:
int AddCommandBarControl(System::String ^ pszCmdNameCanonical, System::Object ^ pCmdBarParent, System::UInt32 dwIndex, System::UInt32 dwCmdType, [Runtime::InteropServices::Out] System::Object ^ % ppCmdBarCtrl);
int AddCommandBarControl(std::wstring const & pszCmdNameCanonical, winrt::Windows::Foundation::IInspectable const & pCmdBarParent, unsigned int dwIndex, unsigned int dwCmdType, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppCmdBarCtrl);
public int AddCommandBarControl (string pszCmdNameCanonical, object pCmdBarParent, uint dwIndex, uint dwCmdType, out object ppCmdBarCtrl);
abstract member AddCommandBarControl : string * obj * uint32 * uint32 * obj -> int
Public Function AddCommandBarControl (pszCmdNameCanonical As String, pCmdBarParent As Object, dwIndex As UInteger, dwCmdType As UInteger, ByRef ppCmdBarCtrl As Object) As Integer
Paramètres
- pszCmdNameCanonical
- String
[in] Nom (canonique) qualifié complet du contrôle à ajouter.
- pCmdBarParent
- Object
[in] Barre de commandes parent.
- dwIndex
- UInt32
[in] Index de la position pour placer le contrôle.
- dwCmdType
- UInt32
[in] Valeur issue de l'énumération vsCommandBarType.
- ppCmdBarCtrl
- Object
[out] Nouveau contrôle.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.