Skip to content

Tag Definition: drawCentredString

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

altText

implied

None

charSpace

implied

None

direction

implied

None

['ltr', 'LTR', 'rtl', 'RTL', 'none']

mode

implied

None

tagType

implied

None

x

required

None

y

required

None

Can contain
(#PCDATA | name | getName | pageNumber | evalString | loop_i | switch_i | assign_i | if_i | expr)*

Purpose

Draw some centre-aligned text centred on the x and y co-ordinates specified.

Check out our docs page on this.

Example usage

<pageGraphics>
    <drawCentredString x="297.5" y="800">This is a drawCentredString example</drawCentredString>
</pageGraphics>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <template> ➔ <pageTemplate> ➔ <pageGraphics> ➔ <drawCentredString>