Returns or sets the horizontal (CurrentX) or vertical (CurrentY) coordinates for the next drawing method. Not available at design time.
object.CurrentX [= x]
object.CurrentY [= y]
The parts of the CurrentX and CurrentY properties syntax are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
x | A number that specifies the horizontal coordinate. |
y | A number that specifies the vertical coordinate. |
Coordinates are measured from the upper-left corner of an object. The CurrentX property setting is 0 at an object's left edge, and the CurrentY property setting is 0 at its top edge. Coordinates are expressed in twips, or the current unit of measurement defined by the ScaleHeight, ScaleWidth, ScaleLeft, ScaleTop, and ScaleMode properties.
When you use the following graphics methods, the CurrentX and CurrentY settings are changed as indicated:
This method | Sets CurrentX, CurrentY to |
---|---|
DrawCircle | The center of the object. |
Cls | 0, 0. |
DrawLine | The end point of the line. |
PointSet | The point drawn. |