CommandBarButtons
Collection elements:
Iteration through collection using For each ... In ... Do operator is available to object. Collection items are retrieved during iteration.
Access to collection item is possible using [...] operator. Item index (starting from 0) is passed as an argument.
Properties:
Methods:
Clear
Count
Delete
Find
Get
IndexOf
Insert
Move
Description:
Availability:
Example:
CP = Controls.CommandBar1; PressingButton = New Action("NewPressing"); ButtonType = CommandBarButtonType.Action; NewButton = CP.Buttons.Add("ActionButton",ButtonType,,,PressingButton); NewButton.Picture = PictureLib.Parameters; NewButton.Representation = CommandBarButtonRepresentation.Auto; |
See also:
CommandBarButton, property Buttons
Button, property Buttons