Condividi tramite


CommandBarsClass.Item Property

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

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Dichiarazione
Public Overridable ReadOnly Default Property Item ( _
    Index As Object _
) As CommandBar
    Get
'Utilizzo
Dim instance As CommandBarsClass
Dim Index As Object
Dim value As CommandBar

value = instance(Index)
public virtual CommandBar this[
    Object Index
] { get; }
public:
virtual property CommandBar^ default[[InAttribute] Object^ Index] {
    CommandBar^ get ([InAttribute] Object^ Index);
}
abstract Item : CommandBar
override Item : CommandBar
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.VisualStudio.CommandBars.CommandBar
The CommandBar that matches the name or index.

Implements

_CommandBars.Item[Object]

Remarks

Notes to Inheritors

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

.NET Framework Security

See Also

Reference

CommandBarsClass Class

CommandBarsClass Members

Microsoft.VisualStudio.CommandBars Namespace