Object2D.X

From Xojo Documentation

Property (As Double )
aObject2D.X = newDoubleValue
or
DoubleValue = aObject2D.X

Supported for all project types and targets.

The horizontal position of the center or main anchor point.

Example

This example sets the horizontal position to 100 pixels from the left of the containing Canvas.

Var a As New ArcShape
a.Height = 150
a.Width = 150
a.ArcAngle = 1.57
a.StartAngle = -1.57
a.X = 100
a.Border = 100
a.BorderColor = &c0000ff
a.Fill = 50
a.FillColor = RGB(255, 0, 127)
g.DrawObject(a, 100, 100)