Edit

Share via


CommandBarPopup.Copy(Object, Object) Method

Definition

Copies a command bar control to an existing command bar.

public Microsoft.Office.Core.CommandBarControl Copy (object Bar, object Before);
abstract member Copy : obj * obj -> Microsoft.Office.Core.CommandBarControl
Public Function Copy (Optional Bar As Object, Optional Before As Object) As CommandBarControl

Parameters

Bar
Object

Optional Object. A CommandBar object that represents the destination command bar. If this argument is omitted, the control is copied to the command bar where the control already exists.

Before
Object

Optional Object. A number that indicates the position for the new control on the command bar. The new control will be inserted before the control at this position. If this argument is omitted, the control is copied to the end of the command bar.

Returns

Implements

Applies to