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

From Xojo Documentation

Revision as of 17:44, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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)