_Document.CommandBars 属性

定义

返回一个 CommandBars 集合,该集合代表 Microsoft Word 中的菜单栏和所有工具栏。Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.

public:
 property Microsoft::Office::Core::CommandBars ^ CommandBars { Microsoft::Office::Core::CommandBars ^ get(); };
public Microsoft.Office.Core.CommandBars CommandBars { get; }
member this.CommandBars : Microsoft.Office.Core.CommandBars
Public ReadOnly Property CommandBars As CommandBars

属性值

CommandBars

注解

CustomizationContext 访问CommandBars集合之前,使用属性来设置模板或文档上下文。Use the CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.

适用于