Document.CommandBars Property

 

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

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

CommandBars CommandBars { get; }

Property Value

Type: Microsoft.Office.Core.CommandBars

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

Use the P:Microsoft.Office.Interop.Word._Application.CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.

Return to top
Show: