Skip to main content

TdxBarManager.MoveItem(Integer,Integer) Method

Moves an item to a new position in a bar manager’s Items collection.

Declaration

procedure MoveItem(CurIndex: Integer; NewIndex: Integer);

Parameters

Name Type
CurIndex Integer
NewIndex Integer

Remarks

Bar items are stored in a bar manager’s Items zero-based indexed collection. The MoveItem method moves an item from its current position specified by the CurIndex parameter to the new position specified by the NewIndex parameter.

The total number of items within the bar manager’s Items collection can be obtained using the Items.Count property.

The MoveItem method is called when an item is dragged from one category to another.

See Also