CommandBarPopup.Copy Method (Object, Object)
Copies a command bar control to an existing command bar.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function Copy ( _
Bar As Object, _
Before As Object _
) As CommandBarControl
'Usage
Dim instance As CommandBarPopup
Dim Bar As Object
Dim Before As Object
Dim returnValue As CommandBarControl
returnValue = instance.Copy(Bar, Before)
CommandBarControl Copy(
Object Bar,
Object Before
)
Parameters
Bar
Type: System.ObjectOptional 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
Type: System.ObjectOptional 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.
Return Value
Type: Microsoft.Office.Core.CommandBarControl
Implements
CommandBarControl.Copy(Object, Object)