_CommandBars.Item Property

Returns a CommandBar object from the CommandBars collection.

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

Syntax

'Declaration
ReadOnly Default Property Item ( _
    Index As Object _
) As CommandBar
    Get
'Usage
Dim instance As _CommandBars
Dim Index As Object
Dim value As CommandBar

value = instance(Index)
CommandBar this[
    Object Index
] { get; }

Parameters

  • Index
    Type: System.Object

    Required Object. The name or index number of the object to be returned.

Property Value

Type: Microsoft.Office.Core.CommandBar

See Also

Reference

_CommandBars Interface

_CommandBars Members

Microsoft.Office.Core Namespace