CommandBarControl.Move Method
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 CommandBarControl
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.ObjectOptional 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.ObjectOptional 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
Remarks
Some of the content in this topic may not be applicable to some languages.