Rect.Constructor(origin as Point, size as Size)

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constructor

Rect.Constructor(origin as Point, size as Size)

New in 2019r2

Creates a Rect object given the origin and size passed.

Sample Code

Create a rect at 100, 100 that is 50 tall and 50 wide.

Var p As New Point(100, 100)
Var s As New Size(50, 50)
Var myRect As New Rect(p, s)