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

# TImageListCache

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a caching mechanism for image lists.

## Declaration

Source position: imagelistcache.pas line 60

`type TImageListCache = class`
`public`
`constructor Create;` |  | Constructor for the class instance.
`destructor Destroy; override;` |  | Destructor for the class instance.
`function RegisterListener();` |  | Adds a listener for an image list stored in the cache.
`procedure UnregisterListener();` |  | Removes the specified cache listener from the internal list.
`procedure RegisterBitmap();` |  | Adds the specified bitmap to the image list for a cache listener.
`procedure Rebuild;` |  | Rebuilds the cache storage.
`end;`

## Inheritance

`TImageListCache` |  | Implements a caching mechanism for image lists.
`TObject`

## Description

TImageListCache is a class which implements a caching mechanism for TCustomImageList instances. It is used primarily to cache image lists and images used for Glyphs in TButtonGlyph.

TImageListCache contains internal members that are used for the cache storage and cache listener interfaces. The RegisterBitmap method is used to initiate actions affecting the cache storage.

## See also

TButtonGlyph |  | Represents an image that can be attached to a button.