PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets the X-coordinate of the graphical current path position.
|
| DOUBLE PDFPAGE_CanvasCurrentPointX { get; } |
Value
X-coordinate of the graphical current path position.
Example
How to get canvas current point
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Rectangle(300, 300, 500, 400);
PDF.PDFPAGE_Stroke;
curX := PDF.PDFPAGE_CanvasCurrentPointX;
curY := PDF.PDFPAGE_CanvasCurrentPointY;
{ now curX = 300 }
{ now curY = 400 }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_Rectangle(300, 300, 500, 400); PDF->PDFPAGE_Stroke(); DOUBLE curX = PDF->PDFPAGE_CanvasCurrentPointX; DOUBLE curY = PDF->PDFPAGE_CanvasCurrentPointY; // now curX == 300 // now curY == 400 PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_Rectangle(300, 300, 500, 400); PDF.PDFPAGE_Stroke(); DOUBLE curX = PDF.PDFPAGE_CanvasCurrentPointX; DOUBLE curY = PDF.PDFPAGE_CanvasCurrentPointY; // now curX == 300 // now curY == 400 PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_Rectangle 300, 300, 500, 400 PDF.PDFPAGE_Stroke curX = PDF.PDFPAGE_CanvasCurrentPointX curY = PDF.PDFPAGE_CanvasCurrentPointY ' now curX = 300 ' now curY = 400 PDF.EndDoc
See Also


