"textFormat"

Sets the text format of a textEdit.

Synopsis

shape.textFormat(string tFormat);

Parameter

Parameter Description
shape Name of the object
tFormat

Following text formats are available:

  • "PlainText" => plain text

  • "RichText" => HTML text

  • "AutoText" => automatic selection if plain or rich text

Description

Sets the text format of a textEdit.

Example

The following example sets the format of a textEdit to RichText.

main(bool enter)
{
  this.textFormat = "RichText";
  this.Text = "<b>in Bold</b> not bold";
}

Assignment

TextEdit