CommandBarControl.Copy(Object, 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.
Copie ce contrôle à l'emplacement spécifié de la barre de commandes spécifiée.
Microsoft::VisualStudio::CommandBars::CommandBarControl Copy(winrt::Windows::Foundation::IInspectable const & Bar, winrt::Windows::Foundation::IInspectable const & Before);
[System.Runtime.InteropServices.DispId(1610874886)]
public Microsoft.VisualStudio.CommandBars.CommandBarControl Copy (object Bar, object Before);
[<System.Runtime.InteropServices.DispId(1610874886)>]
abstract member Copy : obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControl
Public Function Copy (Optional Bar As Object, Optional Before As Object) As CommandBarControl
Paramètres
- Bar
- Object
[in, optional] MsoControlType du nouveau contrôle. Si ce paramètre n'est pas spécifié, la valeur par défaut est msoControlButton.
- Before
- Object
[in, optional] Entier représentant l'index du contrôle copié. Si cet argument n'est pas spécifié, le nouveau contrôle est ajouté à la fin de la barre de commandes cible.
Retours
Copie du contrôle.
- Attributs
Remarques
La collection de contrôles sur la barre de commandes est de base 1.