Skip to main content
Table of Contents

TTMSFNCBitmapPicker.SelectedBitmap Property

Returns the bitmap associated with the current selection.

API unit family: TMSFNCBitmapPicker Declaring type: TTMSFNCBitmapPicker Inherited from: TTMSFNCCustomBitmapPicker Type: TTMSFNCBitmap

Syntax

FMX.TMSFNCBitmapPicker.hppPascalC++
property SelectedBitmap: TTMSFNCBitmap;
__property TTMSFNCBitmap* SelectedBitmap = {read=GetSelectedBitmap};

Usage examples

Use the selected bitmap

Reads the selected bitmap and selected item index.

Use the selected bitmapPascalC++
procedure TForm1.ApplySelectedBitmap;
begin
  TMSFNCImage1.Bitmap.Assign(TMSFNCBitmapPicker1.SelectedBitmap);
  Caption := 'Selected item: ' + TMSFNCBitmapPicker1.SelectedItemIndex.ToString;
end;

void __fastcall TForm1::ApplySelectedBitmap()
{
  TMSFNCImage1->Bitmap->Assign(TMSFNCBitmapPicker1->SelectedBitmap);
  Caption = "Selected item: " + IntToStr(TMSFNCBitmapPicker1->SelectedItemIndex);
}

Read the related guide