TCustomImageListResolutionEnumerator.Create constructor
Constructor for the class instance.
Declaration
constructor Create(AImgList: TCustomImageList; ADesc: Boolean)Arguments
AImgList | Image list that owns the image resolutions in the enumerator. |
ADesc | Indicates if the enumerator navigates in descending order. |
Description
Create is the constructor for the class instance. Create calls the
inherited constructor.
AImgList contains the
TCustomImageList instance which
contains the image resolutions visited in the enumerator.
ADesc determines the navigation order for image resolutions in the
enumerator. When ADesc is
True, the enumerator is navigated in reverse
(descending) order for the image resolutions. When ADesc is
False, the
enumerator is navigated in ascending image size order.
Create sets the initial value in the Current property to reflect
the navigation order specified in ADesc. The initial value indicates that
Current is positioned just prior to the first item for the navigation order;
TCustomImageListResolutions.Count for descending navigation order,
-1 for ascending navigation order.
Use MoveNext to navigate to the first and subsequent image
resolution for the enumerator.
Use Current to access the current image resolution in the
enumerator.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
