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

From Xojo Documentation

Revision as of 18:32, 24 August 2018 by PLefebvre (talk | contribs) (Created page with "{{ConstructorBox | name=Constructor | owner=Xojo.Core.Rect | ownertype=class | scope=public | parameters=origin As Xojo.Core.Point, size As Xojo.Core.Size }} {{Des...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)