FMX.ImgList.TCustomImageList.CacheSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CacheSize: Word read GetCacheSize write SetCacheSize;

C++

__property System::Word CacheSize = {read=GetCacheSize, write=SetCacheSize, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TCustomImageList

Description

Indicates the maximum number of images that can be stored in the internal cache of the current TCustomImageList object.

If the cache is full and you add into cache a new image, the oldest added to the cache image is automatically deleted. If an image loaded into the cache image changes, then it is automatically removed from the cache.

If the specified CacheSize value is less than the current number of images in the cache, then oldest images (inserted into the cache) are deleted from the cache (until the number of images in the cache becomes equal to the specified CacheSize value).

See Also