Partager via


CommandBarsClass.Item[Object] Property

Definition

Gets the command bar that matches the given name or index.

public:
 virtual property Microsoft::VisualStudio::CommandBars::CommandBar ^ default[System::Object ^] { Microsoft::VisualStudio::CommandBars::CommandBar ^ get(System::Object ^ Index); };
[System.Runtime.InteropServices.DispId(0)]
public virtual Microsoft.VisualStudio.CommandBars.CommandBar this[object Index] { [System.Runtime.InteropServices.DispId(0)] get; }
[<System.Runtime.InteropServices.DispId(0)>]
[<get: System.Runtime.InteropServices.DispId(0)>]
member this.Item(obj) : Microsoft.VisualStudio.CommandBars.CommandBar
Default Public Overridable ReadOnly Property Item(Index As Object) As CommandBar

Parameters

Index
Object

The name or index.

Property Value

The CommandBar that matches the name or index.

Implements

Attributes

Notes to Inheritors

This method should allow either the (1-based) index or the name of the command bar as parameters.

Applies to