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

From Xojo Documentation

Revision as of 22:45, 24 June 2019 by Gperlman (talk | contribs)
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)