ImageEn, unit iemview

TImageEnMView.MultiSelectedImagesCount

TImageEnMView.MultiSelectedImagesCount


Declaration


property MultiSelectedImagesCount: Integer;


Description


MultiSelectedImagesCount returns the number of selected images. Selected indexes are returned by MultiSelectedImages.

Note: This property is valid even if multiple selection is not enabled (i.e. returning either 0 or 1).


Example


// replaces all selected images with 'new.jpg'
for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
begin
  iSelIndex := ImageEnMView1.MultiSelectedImages[ i ];
  ImageEnMView1.SetImageFromFile(iSelIndex , 'new.jpg');
end;


See Also


- MultiSelectedImages
- IsSelected