Skip to main content
Table of Contents

TTMSFNCHTMLText.BitmapContainer Property

Supplies named bitmaps that can be referenced by image tags in the text.

API unit family: TMSFNCHTMLText Declaring type: TTMSFNCHTMLText Type: TTMSFNCBitmapContainer

Syntax

FMX.TMSFNCHTMLText.hppPascalC++
property BitmapContainer: TTMSFNCBitmapContainer;
__property TTMSFNCBitmapContainer* BitmapContainer = {read=GetBitmapContainer, write=SetBitmapContainer};

Usage examples

Render text with shared inline images

Assigns a bitmap container before using image references in the HTML text.

Render text with shared inline imagesPascalC++
procedure TForm1.ConfigureHTMLTextImages;
begin
  TMSFNCHTMLText1.BitmapContainer := TMSFNCBitmapContainer1;
  TMSFNCHTMLText1.Text := '<img src="info"> <b>Profile complete</b>';
  TMSFNCHTMLText1.WordWrapping := True;
end;

void __fastcall TForm1::ConfigureHTMLTextImages()
{
  TMSFNCHTMLText1->BitmapContainer = TMSFNCBitmapContainer1;
  TMSFNCHTMLText1->Text = "<img src=\"info\"> <b>Profile complete</b>";
  TMSFNCHTMLText1->WordWrapping = true;
}

Read the related guide