ToolBar item collection.
Constructors
ToolItemCollection
#Initializes a new instance of the ToolItemCollection class.
Parameters:
| parent (ToolBar) | Parent of the tool item. |
Methods
Add
#Adds the specified item given its order.
Remarks: This will add the item into the collection based on its ToolItem.Order, keeping all items in their order.
Parameters:
| item (ToolItem) | Item to add. |
AddRange
#Adds the specified commands to the collection starting at the specified order.
Parameters:
| commands (IEnumerable<Command>) | Commands to add. |
| order (int = 0) | Order of the items to add. |
AddSeparator
#Adds a separator item with the specified
order or typeParameters:
| order (int = 0) | Order to add the separator. |
| type (SeparatorToolItemType = SeparatorToolItemType.Divider) | Type of separator. |
RemoveItem
#Called when an item is removed from the collection.
Parameters:
| index (int) | Index of the item being removed. |
Overrides: Collection<1>.RemoveItem