LMD-Tools Font Image List Guide


TLMDFontImages


type

  TLMDFontImages = class(TOwnedCollection);

 

The type is used as a type of TLMDFontImageList.Items property to represent the list's icon collection. At design time can be filled with items via image list component editor. At run-time allows to Add, Move or Delete items, as well, as enumerating icons via Count and Items[Index] properties.

 

BeginUpdate/EndUpdate methods can be used for performance optimization when in case of many simultaneous collection modifications.

 

function ImageList: TLMDFontImageList;

Points to the TLMDFontImageList instance to which this collection belongs.

function Add: TLMDFontImageItem;

function Add(ASymbol: Char; AColor: TColor = 

             clDefault): TLMDFontImageItem;

Creates and adds new icon item to the font image list. The item is added to the end of the collection. The second method overload allows to specify icon symbol code and color directly as a parameters.

 
Methods return newly created item.

function Insert(Index: Integer): TLMDFontImageItem;

Creates and adds new icon item to the font image list. The item is added into the collection at Index position. Method returns newly created item.

procedure Delete(Index: Integer);

Deletes the item at Index position.

procedure Clear;

Deleted all items from the collection.

property Count: Integer;

Returns the count of collection items.

property Items[Index: Integer]: TLMDFontImageItem;

Provides access to individual collection items by Index index. Along with the Count property the Items allows to iterate font image list items.

procedure BeginUpdate;

procedure EndUpdate;

Allows to deffer internal re-calculations and linked components notifications until the end of the multpile collection modifications.