FMX.ListView.Appearances.TListViewItem.Bitmap
Delphi
property Bitmap: TBitmap read GetBitmap write SetBitmap;
C++
__property Fmx::Graphics::TBitmap* Bitmap = {read=GetBitmap, write=SetBitmap};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.ListView.Appearances.pas FMX.ListView.Appearances.hpp |
FMX.ListView.Appearances | TListViewItem |
Description
Specifies the picture that will be displayed for this item if Images and ImageIndex specify a non-existent image.
The Appearances.TListViewItem control tries to show an image specified by the Images and ImageIndex properties. If Images and ImageIndex do not specify an existent not-empty image, then the Appearances.TListViewItem control tries to show the image specified by Bitmap.
You can also assign an image programmatically, as shown in the following code snippets:
Delphi:
var anItem, anItem1: TListViewItem;
// Load an image from file
anItem.Bitmap.LoadFromFile('MyImage.jpg');
// Use an already loaded image
anItem1.Bitmap = Image1.Bitmap;
C++Builder:
// Load an image from file
TListviewItem *anItem->Bitmap->LoadFromFile("MyImage.jpg");
// Use an already loaded image
TListviewItem *anItem1->Bitmap = Image1->Bitmap;
For more information and samples, see TImage.Bitmap.