ToolItemCollection

Collection<1>References
ToolBar item collection.

Constructors

ToolItemCollection

#
protected internal ToolItemCollection(ToolBar parent)
Initializes a new instance of the ToolItemCollection class.

Methods

Add

#
public void Add(Command command, int order = 0)
Add a command with the specified order.

Add

#
public void Add(ToolItem item)
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.
item (ToolItem)Item to add.

AddRange

#
public void AddRange(IEnumerable<Command> commands, int order = 0)
Adds the specified commands to the collection starting at the specified order.

AddRange

#
public void AddRange(IEnumerable<ToolItem> items)
Adds the specified tool items to the collection.

AddSeparator

#
public void AddSeparator(int order = 0, SeparatorToolItemType type = SeparatorToolItemType.Divider)
Adds a separator item with the specified order or type
order (int = 0)Order to add the separator.
type (SeparatorToolItemType = SeparatorToolItemType.Divider)Type of separator.

InsertItem

#
protected override void InsertItem(int index, ToolItem item)
Called when an item is inserted.

RemoveItem

#
protected override void RemoveItem(int index)
Called when an item is removed from the collection.