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

CommandBarControl.BeginGroup 属性 (办公室)CommandBarControl.BeginGroup Property (Office)

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

如果指定的命令栏控件显示在命令栏上控件组的开头,则获取True 。读/写。Gets True if the specified command bar control appears at the beginning of a group of controls on the command bar. Read/write.

请注意 已通过 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. BeginGroup

表达式_一个表示命令栏控件对象的变量。_expression A variable that represents a CommandBarControl object.

返回值Return Value

BooleanBoolean

示例Example

本示例在活动菜单栏上将最后一个控件作为一个新组的开始。This example begins a new group with the last control on the active menu bar.

Set myMenuBar = CommandBars.ActiveMenuBar 
Set lastMenu = myMenuBar _ 
    .Controls(myMenuBar.Controls.Count) 
lastMenu.BeginGroup = True

另请参阅See also

概念Concepts

命令栏控件对象CommandBarControl Object

其他资源Other resources

命令栏控件对象成员CommandBarControl Object Members

© 2018 Microsoft