FreeTextTile method: FreeTextTile class
Syntax
FreeTextTile(TILE_NAME)
Description
The FreeTextTile constructor is automatically invoked when you instantiate an object of the FreeTextTile class. Because the FreeTextTile class is a subclass of the ImageTextTile class, this method also instantiates an object of the superclass before initializing the FreeTextTile object.
Parameters
| Parameter | Description |
|---|---|
|
TILE_NAME |
Specifies the ID for the tile as string value of up to 30 characters. This represents the Tile Name of the tile definition in Tile Wizard. Note: The ID cannot include spaces or special characters and must not begin with a number. |
Returns
An ImageTile object.
Example
import PTGP_APPCLASS_TILE:API:FreeTextTile;
Local PTGP_APPCLASS_TILE:API:FreeTextTile &t2 = create PTGP_APPCLASS_TILE:API:FreeTextTile("MY_TILE2");
/* Set required properties */
&t2.Title = "My Text Tile";
&t2.TargetCrefName = "PT_SC_PERS_DICT_FL_GBL"; /* My Dictionary */
&t2.Content = "My tile <i>content.</i>";
/* Invoke methods defined in the base class. */
&t2.Save(); /* For a new tile definition, a save is required. */
&t2.Publish();
Related Topics