SetAlignment Method

Sets alignment of watermark for orientation portrait and landscape.

Object.SetAlignment(luHAlign[, luVAlign])

Parameters

luHAlign 

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.

Remarks

Applies To: XFRX#WATERMARKWATERMARK-Text Object, WATERMARK-Image Object

Examples

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