ImageEn, unit iemview

TImageEnMView.MoveSelectedImagesTo

TImageEnMView.MoveSelectedImagesTo


Declaration


procedure MoveSelectedImagesTo(beforeImage: Integer; UseDisplayOrder: Boolean = true);


Description


Moves all selected images to the postion prior to beforeImage.

To move images after last image set beforeImage to ImageCount.

if UseDisplayOrder is true, files will be inserted in their new position in the order they are displayed. When false, they are inserted in the order they were selected.


Example


// Move all selected images to the start of the grid
ImageEnMView1.MoveSelectedImagesTo(0);

// Move all selected images to the end of the grid
ImageEnMView1.MoveSelectedImagesTo(ImageEnMView1.ImageCount);