Gets the button at a supplied index location in this collection.
Defined As
Parameters
index
[in]
Indicates the
index location of the button to return from this collection. (One
based)
Execution Results
If the property get succeeds, the return value will be success. If the index is out of range, the return value will be InvalidArgument. If the method does not succeed, the return value will be GeneralFailure.
Calling Syntax
This example assumes there is a valid ToolbarButtons collection as retrieved from an ObjectView (for example, VBA: objectView.Toolbars.Item(1).Buttons).
[VBA]
Sub Example(Buttons As Object)
Dim toolbar As Object
`Getting Property value
Set toolbar = Buttons.Item(1)
End Sub
[Cicode]
FUNCTION Example(OBJECT hButtons)
// Getting property value
OBJECT hToolbar = _ObjectCallMethod(hButtons, "get_Item", 1);
END