Realbasic.Rect.Size

From Xojo Documentation

Property (As Realbasic.Size )
aRealbasic.Rect.Size = newRealbasic.SizeValue
or
Realbasic.SizeValue = aRealbasic.Rect.Size

Supported for all project types and targets.

The dimensions of the Rect.

Sample Code

This example is in the Paint event of a project. It computes the Size of the union of two rects.

// To demonstrate the Union feature, we'll draw a Cyan rectangle
// around both the draggable rects.
Dim theSize As New REALbasic.Size
Dim u As Realbasic.Rect = rectone.Union(recttwo)
buffer.Graphics.ForeColor = CyanColor
buffer.Graphics.DrawRect(u.Left, u.Top, u.Width, u.Height)
theSize = u.Size