CommandBarPopup.Move Method (Object, Object)

Moves the specified command bar control to an existing command bar.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Move ( _
    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.Move(Bar, Before)
CommandBarControl Move(
    Object Bar,
    Object Before
)

Parameters

  • Bar
    Type: System.Object

    Optional Object. A CommandBar object that represents the destination command bar for the control. If this argument is omitted, the control is moved to the end of the command bar where the control currently resides.

  • Before
    Type: System.Object

    Optional Object. A number that indicates the position for the control. The control is inserted before the control currently occupying this position. If this argument is omitted, the control is inserted on the same command bar.

Return Value

Type: Microsoft.Office.Core.CommandBarControl

Implements

CommandBarControl.Move(Object, Object)

Remarks

Some of the content in this topic may not be applicable to some languages.

See Also

Reference

CommandBarPopup Interface

CommandBarPopup Members

Move Overload

Microsoft.Office.Core Namespace