CurrentX, CurrentY Properties
Specifies the horizontal (X) and vertical (Y) coordinates for the next drawing method. Not available at design time; read/write at run time.
Object.CurrentX[ = nXCoord] Object.CurrentY[ = nYCoord]
- Specifies the horizontal coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.
- Specifies the vertical coordinate of the form, in the unit of measurement specified by the ScaleMode property of the form.
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.|
|Line||The endpoint of the line.|
|The next print position.|
|Pset||The point drawn.|