_CommandBarButton.Move(Object, Object) 方法

定义

将指定的命令栏控件移动到现有命令栏。

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

参数

Bar
Object

表示控件位置的数字。 控件将插到该位置的控件之前。 如果忽略该参数,控件插入到同一命令栏。

Before
Object

一个 CommandBar 对象,表示控件的目标命令栏。 如果忽略该参数,则控件将移动到当前所在命令栏的末端。

返回

实现

适用于