Freigeben über


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)

Syntax

'Declaration
ReadOnly Property CommandBars As CommandBars
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.

Remarks

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

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace