



Collapse All
Syntax| DOUBLE PDFPAGE_CurrentTextPositionX { get; } |
X-coordinate of the current text position
Remarks
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetActiveFont('Helvetica', false, false, false, false, 16.0, 0);
PDF.PDFPAGE_TextOut(10, 10, 0.0, 'Hello, World.');
curX := PDF.PDFPAGE_CurrentTextPositionX;
curY := PDF.PDFPAGE_CurrentTextPositionY;
// now curX = 132.090667724609
// now curY = 15.3333339691162
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetActiveFont("Helvetica", FALSE, FALSE, FALSE, FALSE, 16.0, 0);
PDF->PDFPAGE_TextOut(10, 10, 0.0, "Hello, World.");
DOUBLE curX = PDF.PDFPAGE_CurrentTextPositionX;
DOUBLE curY = PDF.PDFPAGE_CurrentTextPositionY;
// now curX == 132.090667724609
// now curY == 15.3333339691162
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetActiveFont("Helvetica", false, false, false, false, 16.0, 0);
PDF.PDFPAGE_TextOut(10, 10, 0.0, "Hello, World.");
double curX = PDF.PDFPAGE_CurrentTextPositionX;
double curY = PDF.PDFPAGE_CurrentTextPositionY;
// now curX == 132.090667724609
// now curY == 15.3333339691162
PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Helvetica", False, False, False, False, 16.0, 0 PDF.PDFPAGE_TextOut 10, 10, 0.0, "Hello, World." curX = PDF.PDFPAGE_CurrentTextPositionX curY = PDF.PDFPAGE_CurrentTextPositionY ' now curX = 132.090667724609 ' now curY = 15.3333339691162 PDF.EndDoc
See Also