CurrentX, CurrentY Properties


Apply To

Form14TJ2LN, picture box31MYIWX, Printer objectCBQUDQ.


Determine the horizontal (CurrentX) and vertical (CurrentY) coordinates for the next printing or drawing method1XB6QBF.  Not available at design time.


{ [form.][picturebox.]|Printer.}CurrentX[ = x ]

{ [form.][picturebox.]|Printer.}CurrentY[ = y ]


Coordinates are measured from the upper-left corner of an object.  CurrentX is 0 at an object's left edge and CurrentY is 0 at its top edge.  Coordinates are expressed in twips2SWJ8D3, or the current scale defined by the ScaleHeight, ScaleWidth3J8U7ZN, ScaleLeft, ScaleTop138Z3ME, and ScaleMode.5SNY0BP properties.

When you use the following graphics methods, the CurrentX and CurrentY settings are changed as indicated:

This method     Sets CurrentX, CurrentY to


Circle38E9WK               The center of the object.

ClsLANCLS                   0, 0

EndDocRFC0FY            0, 0

LineGU01B0                  The end point of the line.

NewPage1UOETVR          0, 0

Print9V51E5                 The next print position.

PSet103J0PY                 The point drawn.


Data Type


See Also


Circle Method38E9WK

Cls MethodLANCLS

DrawMode Property2ZATBSD

DrawStyle Property4PNS0NQ

Left, Top Properties1CIZPD6

Line MethodGU01B0

PSet Method103J0PY

ScaleHeight, ScaleWidth Properties3J8U7ZN

ScaleLeft, ScaleTop Properties138Z3ME

ScaleMode Properties5SNY0BP


Programmer's Guide:

Chapter 15, "Creating Graphics for Applications"