FMX.ImgList.TCustomImageList.BitmapItemByName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function BitmapItemByName(const Name: string; var Item: TCustomBitmapItem; var Size: TSize): Boolean;

C++

bool __fastcall BitmapItemByName(const System::UnicodeString Name, Fmx::Multiresbitmap::TCustomBitmapItem* &Item, System::Types::TSize &Size);

Properties

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

Description

Tries to find the bitmap item specified by Name in the Source collection.

BitmapItemByName returns True if it finds in the Source collection a bitmap item corresponding to the specified Name.

If BitmapItemByName finds a bitmap, then Item returns the found (not empty) bitmap (for a scale most appropriate to 1). Size returns a width and height (in TSize type) of the found bitmap.

See Also