"format"

Gets or sets the text format of a primitive text object.

Synopsis

setValue(string shape, "format", string textFormat);

getValue(string shape, "format", string &textFormat);

shape.format(string textFormat);

Parameters

Parameter Description
shape Name of the object
textFormat Format string

Description

Writes or reads the text format (see Format string) in the "textFormat" string.

Example

In the following example, the format is interpreted as an 8-place right-aligned string and applied to "Field12" in the shape.

main()
{
  shape text=getShape("Field12");
  text.format="[8s,,,FALSE]";
}

Assignment

Primitive text