Skip to content

TCollection.Move

Move an item in the collection.

Declaration

Source position: classesh.inc line 960

public 
procedure TCollection.Move(const Index1: Integer; const index2: Integer);

Description

Move will move the collection item from position index1 to Index2. In difference with Exchange the indexes of the elements between index1 to Index2 will shift.

Errors

If an invalid index is specified in index1 or Index2, an exception will be raised.

See also

Name Description
TCollection.Exchange Exchange 2 items in the collection.