Table of contents
TOC
折叠目录
展开目录

CommandBarPopup.Copy 方法 (办公室)CommandBarPopup.Copy Method (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

将一个命令栏弹出式控件复制到已有的命令栏中。Copies a command bar popup control to an existing command bar.

请注意 已通过 Microsoft Office 流畅的用户界面的新功能区组件取代某些 Microsoft Office 应用程序中的命令栏使用。有关更多信息,请搜索帮助关键字"功能区"。Note The use of CommandBars in some Microsoft Office applications has been superseded by the new ribbon component of the Microsoft Office Fluent user interface. For more information, search Help for the keyword "ribbon."

语法Syntax

表达式复制()expression. Copy( Bar, Before )

表达式_一个表示CommandBarPopup对象的变量。_expression A variable that represents a CommandBarPopup object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
Bar可选OptionalVariantVariant表示目标命令栏的命令栏对象。如果省略此参数,控件将被复制到命令栏控件已经存在。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.
BeforeBefore可选OptionalVariantVariant一个指示新控件在命令栏上的位置的数值。新控件将插入到位于此位置的控件之前。如果省略此参数,控件将被复制到命令栏的末尾。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

命令栏控件CommandBarControl

另请参阅See also

概念Concepts

CommandBarPopup 对象CommandBarPopup Object

其他资源Other resources

CommandBarPopup 对象成员CommandBarPopup Object Members

© 2018 Microsoft