CommandBarControl.Copy(Object, Object) Méthode

Définition

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

CommandBarControl

Copie du contrôle.

Attributs

Remarques

La collection de contrôles sur la barre de commandes est de base 1.

S’applique à