Expand Minimize

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
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  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 CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft