class Text
Non-editable HTML text on a form.
Syntax
[<oRef> =] new Text(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created Text object.
<container>
The container—typically a Form object—to which you’re binding the Text object.
<name expC>
An optional name for the Text object. If not specified, the Text class will auto-generate a name for the object.
Properties
The following tables list the properties and methods of interest in the Text class. (No particular events are associated with this class.)
Property |
Default |
Description |
Left |
Determines how the text displays within the horizontal plane of its rectangular frame (0=Left, 1=Center, 2=Right, 3=Justify) | |
Top left |
Combines the alignHorizontal, alignVertical, and wrap properties (maintained for compatibility) | |
Top |
Determines how the text displays in the vertical plane of its rectangular frame (0=Top, 1=Center, 2=Bottom, 3=Justify) | |
0 – None |
How the Text object is anchored in its container (0=None, 1=Bottom, 2=Top, 3=Left, 4=Right, 5=Center, 6=Container) | |
TEXT |
Identifies the object as an instance of the Text class | |
false |
Whether the Text object is surrounded by the border specified by borderStyle | |
TEXT |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
BtnText/BtnFace |
The color of the text | |
false |
Whether the Text object’s position is fixed or if it can be "pushed down" or "pulled up" by the rendering or suppression of other objects | |
|
A text formatting function | |
0 |
The distance between consecutive lines; if 0 uses the font's default leading | |
|
The horizontal margin between the text and its rectangular frame | |
|
The vertical margin between the text and its rectangular frame | |
|
Formatting template | |
true |
Whether to interpret the ampersand (&) character in the text as the accelerator prefix. | |
0 |
The text orientation, in increments of 90 degrees | |
false |
Whether the Text object is suppressed (not rendered) if it is blank | |
false |
Whether the Text object is suppressed (not rendered) if its value is the same as the previous time it was rendered | |
<same as name> |
The value of the Text object; the text that appears | |
0 |
The space between characters; if zero uses the font’s default | |
0 |
The maximum amount of added space between words on a fully justified line; zero indicates no limit | |
false |
Whether the Text object has the same background color or image as its container | |
false |
Whether the Text object’s height can increase based on its value | |
0 |
The maximum additional space between lines that can be added to attempt to justify vertically. If the limit is exceeded the Text object is top justified. A value of zero means no limit. | |
true |
Whether to word-wrap the text in the Text object
| |
Method |
Parameters |
Description |
<expC> |
Returns the width of the specified string using the Text object’s font
|
The following table lists the common properties, events, and methods of the Text class:
Description
Use a Text component to display information in a form or report. The text property of the component may contain any text, including HTML tags. Use a TextLabel component in forms where the extended functionality of the Text component is not required.
The text property may be an expression codeblock, which is evaluated every time it is rendered.
Note
The properties, marginHorizontal, marginVertical, suppressfBlank, suppressfDuplicate, tracking, trackJustifyThreshold, verticalJustifyLimit and variableHeight are designed to be used only in reports.