"documentTitle"

The attribute "documentTitle" gets or sets the title of a textEdit document.

Synopsis

getValue( string shape, "documentTitle", string &title);

setValue( string shape, "documentTitle", string title);

Parameter

Parameter Description
shape Name of the object
title The title

Description

The attribute "documentTitle" gets or sets the title of a textEdit document. This property holds the title of the document parsed from the text. For PlainText, the title is an empty string. For RichText, the title is the text between the <title> tags if they are present, otherwise an empty string. This attribute makes a difference if you, for example, fill a textEdit with a text (from a file) and then query this property.

Example

In the following example, the title of a textEdit is returned.

main(bool enter)
{
  string sn = "TEXT_EDIT1";
  string dt;
  getValue(sn,"documentTitle", dt);
  DebugN("The document title",dt);
}

Assignment

TextEdit