CommandBars Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_Document.CommandBars Property

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

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

CommandBars CommandBars { get; }

Property Value

Type: CommandBars

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

© 2015 Microsoft