Document.CommandBars Property

Definition

Gets a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Office 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

Property Value

A CommandBars collection that represents the menu bar and all the toolbars in Microsoft Office Word.

Remarks

Use the CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.

Applies to