Xojo.Core.Rect.Constructor(origin As Point, size As Size)

From Xojo Documentation

Constructor
Xojo.Core.Rect.Constructor(origin As Xojo.Core.Point, size As Xojo.Core.Size)

Creates a new Rect starting at the origin Point for the specified size.

Sample Code

Creates a new Rect:

Var p As New Xojo.Core.Point(10, 10)
Var s As New Xojo.Core.Size(100, 50)
Var myRect As New Rect(p, s)