[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ImgList' (#lcl)

# TCustomImageListResolutions.ImageLists

Provides access to an image list which uses the specified image width.

## Declaration

Source position: imglist.pp line 245

`public property TCustomImageListResolutions.ImageLists[AImageWidth: Integer] : TCustomImageListResolution read GetImageLists;`

## Description

ImageLists is a read-only indexed TCustomImageListResolution property which provides access to the image resolution which uses the image width in AImageWidth.

GetImageLists is the read access specifier for the property value. An overloaded variant of the method is used to Find an existing image resolution that uses the requested image size. If an image resolution with the requested size does not already exist, a new resolution class instance is created and populated with images scaled to the required size. The new image resolution is inserted in the container at the position where the image size should be located. This ensures that the image resolutions are ordered in ascending image size order as expected in TCustomImageList methods.

Use the Items property to access existing resolutions by their ordinal position in the container.

## See also

TCustomImageListResolutions.Items |  | Provides indexed access to existing image resolutions in the container.
TCustomImageList.HeightForWidth |  | Height used for images with the width specified width.
TCustomImageList.AddImages |  | Adds images from another image list to the current class instance.