_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)

Syntax

'Declaration
ReadOnly Property CommandBars As CommandBars
    Get
'Usage
Dim instance As _Document
Dim value As CommandBars

value = instance.CommandBars
CommandBars CommandBars { get; }

Property Value

Type: CommandBars

Remarks

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

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace