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
'宣告
Public Overridable ReadOnly Default Property Item ( _
Index As Object _
) As CommandBar
public virtual CommandBar this[
Object Index
] { get; }
Parameters
- Index
Type: System.Object
The name or index.
Property Value
Type: Microsoft.VisualStudio.CommandBars.CommandBar
The CommandBar that matches the name or index.
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.