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:

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