Document.CommandBars Property (2007 System)
Gets a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Office Word.
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Use the CustomizationContext property to set the template or document context prior to accessing the collection.
The following code example makes the Drawing toolbar visible at the bottom of the application.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.