FMX.ImgList.TCustomSourceItem.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Collection: TCollection); override;

C++

__fastcall virtual TCustomSourceItem(System::Classes::TCollection* Collection);

Properties

Type Visibility Source Unit Parent
constructor public
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TCustomSourceItem

Description

Creates and initializes a TCustomSourceItem instance.

Create calls the inherited TCollectionItem.Create to create a TCustomSourceItem instance. Then Create initializes the default Name and MultiResBitmap. If Collection is not an instance of TSourceCollection (or its descendant), Create raises an exception.

Collection defines the TSourceCollection collection to which the new TCustomSourceItem item belongs.

Do not call Create to instantiate a collection item. Instead, call the Add method of the collection to which the item should belong.

See Also