SetTextAlign
Description
Set the alignment of subsequent text drawn with the DrawText, DrawWrappedText or DrawMultiLineText functions.
Syntax
Delphi
function TDebenuPDFLibrary1811.SetTextAlign(TextAlign: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SetTextAlign(TextAlign As Long) As Long
DLL
int DPLSetTextAlign(int InstanceID, int TextAlign)
Parameters
TextAlign |
The alignment of the text: 0 = Left aligned (default) 1 = Center aligned 2 = Right aligned 3 = Justified 4 = Force justified 5 = Last line justified Anything else = Left aligned "Justified" mode will not justify a line if it's the last line in a paragraph or if the line ends with a hard-break. "Force justified" will justify every line even if it's the last line or if it ends with a hard-break. "Last line justified" will not justify the last line of text, this is useful when different blocks of text are drawn one after the other. |