PDFPAGE_CanvasCurrentPointX
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This property gets the X coordinate of the graphical current path position.

Syntax

DOUBLE PDFPAGE_CanvasCurrentPointX { get; }
Value
X-coordinate of the graphical current path position

Remarks

Equivalent in new interface: IPDFDocument4::GetCurrentX.

Example

How to Get the 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

Reference