Object2D.Y

From Xojo Documentation

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

Supported for all project types and targets.

The vertical position (down from top) position of the center or anchor point.

Example

This example moves the position of the arc down 100 pixels from the top of the containing Canvas.

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