CommandBarControls Interface

Definition

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

public interface class CommandBarControls : Microsoft::Office::Core::_IMsoDispObj, System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000C0306-0000-0000-C000-000000000046")]
public interface CommandBarControls : Microsoft.Office.Core._IMsoDispObj, System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("000C0306-0000-0000-C000-000000000046")>]
type CommandBarControls = interface
    interface _IMsoDispObj
    interface IEnumerable
Public Interface CommandBarControls
Implements _IMsoDispObj, IEnumerable
Attributes
Implements

Remarks

Use the Controls property to return the CommandBarControls collection.

Use the Add(Object, Object, Object, Object, Object) 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.

Properties

Application

Returns an Application object that represents the container application for the object.

Count

Returns or sets an Integer indicating the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

Returns a CommandBarControl object from the CommandBarControls collection.

Parent

Returns the Parent object for the specified object.

Methods

Add(Object, Object, Object, Object, Object)

Creates a new CommandBarControl object and adds it to the collection of controls on the specified command bar.

GetEnumerator()

Applies to