RectShape.Width

From Xojo Documentation

Property (As Double )
aRectShape.Width = newDoubleValue
or
DoubleValue = aRectShape.Width

Supported for all project types and targets.

The width of the rectangle.

Example

This example sets the Width to 150 pixels.

Dim r As New RectShape
r.Width = 150
r.Height = 150
r.Border = 100
r.BorderColor = RGB(0, 0, 0) // black
r.FillColor = RGB(0, 127, 127) // teal
r.BorderWidth = 2.5
r.Rotation = -0.78
g.DrawObject(r, 100, 100)