Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarManager.ExchangeItems(Integer,Integer) Method

Swaps two items in a bar manager’s Items list.

#Declaration

Delphi
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