From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TImageLink = class


class PASCALIMPLEMENTATION TImageLink : public System::TObject


Type Visibility Source Unit Parent
class public
System.ImageList System.ImageList


The base class for both FireMonkey and VCL image links. An image list uses TImageLink internally to notify components using the image list when changes are made to the image list.

The TBaseImageList component uses TImageLink to define which components to be notified about the image list changes. When Images, ImageIndex, or contents of TBaseImageList changes, the TImageLink.Change method is called.

Each TBaseImageList image list contains the Links property keeping TImageLink objects. When you set a TBaseImageList image list in the TImageLink.Images property, then a reference to this TImageLink object is added into the Links property. A descendant of TBaseImageList scans the TBaseImageList.Links array after any changes in the image list and executes the TImageLink.Change method for elements of this array.

See Also