Text object
- Last UpdatedJul 26, 2024
- 1 minute read
The following elements can be specified for a text object.
|
Elements |
Description |
|---|---|
|
Title |
Object name. Optional. |
|
TextString |
Displayed text string. Required. Text object is not created if the Textstring element is assigned an invalid value or is missing a value. |
|
TextInfo |
Defines how the text will be shown. |
|
Rotation |
Defines orientation of the text in degrees. Possible values:{0, 90, 180, 270}. Default is 0. |
|
AnimationLinks |
Optional animation links list. |
|
Dimension |
Location and size of an object. Elements are top, left, width, height. Top, left, width, and height values are pixels. The resulting coordinates must be within -32000 and +32000. Both width and height cannot be zero. Required. Object is not created if the Dimension element is assigned invalid values or is missing values. |
Example:
<Text>
<Title>text1</Title>
<TextString>This is some text to display</TextString>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
<TextInfo>
<Font>Arial</Font>
<FontStyle>Regular</FontStyle>
<FontSize>12</FontSize>
<Underline>false</Underline>
<Strikeout>false</Strikeout>
<TextColor>
<R>0</R>
<G>0</G>
<B>0</B>
</TextColor>
<TextJustify>Left</TextJustify>
</TextInfo>
<Rotation>0</Rotation>
<AnimationLinks>
</AnimationLinks>
</Text>
Minimal example:
<Text>
<TextString>This is some text to display</TextString>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
</Text>