Skip to main content
Table of Contents

TTMSFNCHTMLText.Text Property

Contains the plain text or supported HTML markup rendered by the control.

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

Syntax

FMX.TMSFNCHTMLText.hppPascalC++
property Text: String;
__property System::UnicodeString Text = {read=FText, write=SetText};

Usage examples

Configure formatted HTML text

Sets formatted text, wrapping, and alignment.

Configure formatted HTML textPascalC++
procedure TForm1.ConfigureHTMLText;
begin
  TMSFNCHTMLText1.Text := '<b>Status</b><br><font color="#1BADF8">Connected</font>';
  TMSFNCHTMLText1.DisplayHTML := True;
  TMSFNCHTMLText1.WordWrapping := True;
  TMSFNCHTMLText1.HorizontalTextAlign := gtaLeading;
  TMSFNCHTMLText1.VerticalTextAlign := gtaCenter;
end;

void __fastcall TForm1::ConfigureHTMLText()
{
  TMSFNCHTMLText1->Text = "<b>Status</b><br><font color=\"#1BADF8\">Connected</font>";
  TMSFNCHTMLText1->DisplayHTML = true;
  TMSFNCHTMLText1->WordWrapping = true;
  TMSFNCHTMLText1->HorizontalTextAlign = gtaLeading;
  TMSFNCHTMLText1->VerticalTextAlign = gtaCenter;
}

Read the related guide