Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sets alignment of watermark for orientation portrait and landscape.

Code Block
Object.SetAlignment(luHAlign[, luVAlign])

...

Specifies a numerical or string value representing the horizontal alignment of watermark. Default value is "left".

ValueDescription
'left'0

Aligns watermark in left border of the page.

'center'1Aligns watermark at horizontally centered of the page
'right'2Aligns watermark in right border of the page
'justify'3Aligns watermark in left border of the page - for text watermark only.

luVAlign
Specifies a numerical or string value representing the vertical alignment of watermark. Default value is "top".

ValueDescription
'top'0Aligns watermark in top border of the page.
'middle'1Aligns watermark at vertically centered of the page.
'bottom'2Aligns watermark in bottom border of the page.

...

Applies To: XFRX#WATERMARKWATERMARK-Text MemberObjectWATERMARK-Text Image Object

Examples

Code Block
m.loWM=EVALUATE([xfrx("XFRX#WATERMARK", m.loSession)])
m.loWM.SetText("W A T E R M AR K")
m.loWM.SetAlignment("center", "middle")

...