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".
Value | Description | |
|---|---|---|
'left' | 0 | Aligns watermark in left border of the page. |
'center' | 1 | Aligns watermark at horizontally centered of the page |
'right' | 2 | Aligns watermark in right border of the page |
'justify' | 3 | Aligns 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".
Value | Description | |
|---|---|---|
'top' | 0 | Aligns watermark in top border of the page. |
'middle' | 1 | Aligns watermark at vertically centered of the page. |
'bottom' | 2 | Aligns watermark in bottom border of the page. |
Remarks
Applies To: XFRX#WATERMARK, WATERMARK-Text Object, WATERMARK-Image Object
Examples
* after calls loSession.SetParams()
m.loWM=EVALUATE([xfrx("XFRX#WATERMARK", m.loSession)])
m.loWM.SetText("W A T E R M AR K")
m.loWM.SetAlignment("center", "middle")