PdfDrawTextAlign Method

See Also     Examples     Applies To

Draws a text using specified font and specified alignment into the current page of the native pdf created by the PdfNewPdfEx() function.

Syntax

object.PdfDrawTextAlign (nDstX, nDstY, sText, nFontId, nFontSize, nTextAlign)

The PdfDrawTextAlign syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nDstX Required. Single. The X destination in current unit defined by the PdfSetMeasurementUnits() function.
nDstY Required. Single. The Y destination (from the bottom) in current unit defined by the PdfSetMeasurementUnits() function.
sText Required. String. The text to draw.
nFontId Required. Long. The Font ID. Value returned by the PdfAddFont() function.
nFontSize Required. Long. The font size in point. 1 point = 1/72 inch.
nTextAlign Required. Long.
Can be:
0: Align X
1: Align Right
2: Align Center

Remarks

This function can only be used with the native PDF created by the PdfNewPdfEx() function.

Category

PDF Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.