Difference between revisions of "Rect.Constructor(origin as Point, size as Size)"
From Xojo Documentation
(Created page with "N/A") |
|||
Line 1: | Line 1: | ||
− | + | {{ConstructorBox | |
+ | | name=Constructor | ||
+ | | newinversion = 2019r2 | ||
+ | | owner=[[Rect]] | ||
+ | | parameters=origin as [[Point]], size as [[Size]] | ||
+ | | ownertype=class | ||
+ | | scope=public | ||
+ | | platform=all | ||
+ | }} | ||
+ | {{Description | ||
+ | |text = 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. | ||
+ | <rbcode> | ||
+ | Var p as New Point(100,100) | ||
+ | Var s as New Size(50, 50) | ||
+ | Var myRect As New Rect(p, s) | ||
+ | </rbcode> |