You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > Low-level Functions > PdfDrawTextAlign Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfDrawTextAlign Method

Draws a text using specified font and specified alignment into the current page of a PDF.

C#
public PdfDrawTextAlign(
    int PdfID, 
    Single DstX, 
    Single DstY, 
    String Text, 
    int FontID, 
    Single FontSize, 
    Color TextColor, 
    TextAlign TextAlign
);
Visual Basic
Public Sub PdfDrawTextAlign(
    ByVal PdfID As Integer, 
    ByVal DstX As Single, 
    ByVal DstY As Single, 
    ByVal Text As String, 
    ByVal FontID As Integer, 
    ByVal FontSize As Single, 
    ByVal TextColor As Color, 
    ByVal TextAlign As TextAlign
)
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by the PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream() function. 
DstX 
The X destination in current unit defined by the PdfSetMeasurementUnit() function.  
DstY 
The Y destination (from the bottom) in current unit defined by the PdfSetMeasurementUnit() function.  
Text 
The text to draw.  
FontID 
The Font ID. Value returned by the PdfAddTrueTypeFont() function.  
FontSize 
The font size in point. 1 point = 1/72 inch.  
TextColor 
Color Object. You can build a Color Object using the ARGB() function. Color of the text.  
TextAlign 
A member of the TextAlign enumeration.  
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.