Share via


CommandBarControls Interface 

A collection of CommandBarControl objects that represent the command bar controls on a command bar.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Public Class ommandBarControlsImplementation
    Implements CommandBarControls
End Class
Dim ommandBarControlsImplementation1 As New ommandBarControlsImplementation()

Syntax

Public Interface CommandBarControls
    Inherits _IMsoDispObj, IEnumerable
public interface CommandBarControls : _IMsoDispObj, IEnumerable
public interface class CommandBarControls : public _IMsoDispObj, IEnumerable
public interface CommandBarControls implements _IMsoDispObj, IEnumerable
public interface CommandBarControls implements _IMsoDispObj, , IEnumerable

Remarks

Use the Controls property to return the CommandBarControls collection.

Use the Add method to add a new command bar control to the CommandBarControls collection.

Use Controls(index), where index is the caption or index number of a control, to return a CommandBarControl, CommandBarButton, CommandBarComboBox, or CommandBarPopup object.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

CommandBarControls Members