CurrentX, CurrentY Properties

Applies To   See Also

Specifies the horizontal (X) and vertical (Y) coordinates for the next drawing method. Not available at design time; read-write at run time.

Syntax

Object.CurrentX[ = nXCoord]

Object.CurrentY[ = nYCoord]

Settings

nXCoord

Specifies the horizontal coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.

nYCoord

Specifies the vertical coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.

Remarks

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 foxels or the current unit of measurement defined by the ScaleMode property.

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

Method CurrentX, CurrentY set to
Box The endpoint of the box as specified by the last two arguments.
Circle The center of the object.
Cls 0, 0.
Line The endpoint of the line.
Print  The next print position.
Pset The point drawn.