CurrentX

This property returns and sets the horizontal coordinate for the next drawing method.

Syntax

object.CurrentX [= x]

Parameters

object
Object expression that evaluates to an object.
x
Number that specifies the horizontal coordinate.

Remarks

The CurrentX property is unavailable at design time.

Coordinates are measured from the upper-left corner of an object. The CurrentX property setting is 0 at an object's left edge. Coordinates are expressed in twips or the current unit of measurement defined by the ScaleHeight, ScaleWidth, ScaleLeft, ScaleTop, and ScaleMode properties.

The following table shows how you can use graphics methods to change the settings of CurrentX.

Method
CurrentX Setting
DrawCircle Center of the object
Cls 0, 0
DrawLine End point of the line
PointSet Point drawn