text Element

The text element creates a text object with the attributes described below. Unlike htmlText, the text element does not process tags. If the text element contains some tags, they will be displayed in the text as they appear in the source code.

Syntax

<text id="objectId" x="xPosition" y="yPosition"
          width="objectWidth" height="objectHeight" [color="color"]
          [font="fontName"] [fontId="embededFontId"] [fontSize=""]
          [leftMargin=""] [rightMargin=""]
          [indent="textIndent"] [leading="lineSpacing"]
          [autoSize="isSizeAuto"] [border="hasBorder"]
          [multiline="isMultiline"] [selectable="isSelectable"]
>
   <![CDATA[Here goes your text...]]>
</text>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier

id

no

-

x

Absolute x position (in pixels or twips).

coordinate

no

-

y

Absolute y position (in pixels or twips).

coordinate

no

-

width

Rectangle width (in pixels or twips).

coordinate

no

-

height

Rectangle height (in pixels or twips).

coordinate

no

-

color

Color of the text.

color

yes

-

font

System font name which will be used to draw this text. If embedded font with the same name exists, it will not be used still.

string

yes

-

fontId

Identifier of emeded font object which will be used to draw this text. Overrides font attribute if both are specified.

string

yes

-

fontSize

Height of the font in standard coordinate units.

coordinate

yes

-

leftMargin

Left margin (empty space between the left side of the text and the bounding box).

coordinate

yes

-

rightMargin

Right margin (empty space between the right side of the text and the bounding box).

coordinate

yes

-

indent

Indents the first line of paragraphs.

coordinate

yes

-

leading

Defines line spacing.

coordinate

yes

-

autoSize

Enables text resize with movie if true.

boolean

yes

false

border

Creates a border around the text frame.

boolean

yes

false

multiline

Makes a multiline text object.

boolean

yes

true

wordWrap

Enables text area word wrap.

boolean

yes

true

selectable

Enables text selection.

boolean

yes

false

Parent Elements

objects collection

See Also

XML Schema Reference, objects collection.