TdxBarManager.ExchangeItems(Integer,Integer) Method
Swaps two items in a bar manager’s Items list.
Declaration
procedure ExchangeItems(Index1: Integer; Index2: Integer);
Parameters
Name | Type |
---|---|
Index1 | Integer |
Index2 | Integer |
Remarks
Items of a toolbar are stored in a bar manager’s Items zero-based indexed collection. The ExchangeItems method exchanges the positions of the items specified by the Index1 and Index2 parameters in this collection.
The total number of items within the bar manager’s Items collection can be obtained using the Items.Count property.
This method is called when items are moved from one category to another in the Customization Form.
See Also