Realbasic.Size

From Xojo Documentation

Revision as of 19:14, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from Object)


New in 2011r2

An object used to represent the dimensions of an object.

Properties
Area fa-lock-32.png Height Width
Methods
Clone
Constructors

Constructor()


Constructor(Width as Integer,Height as Integer)


Sample Code

This example reads the Area property.

Dim rectSize As New Realbasic.Size
rectSize.Height = 150
rectSize.Width = 200

MsgBox(Str(rectSize.Area))

See Also

Canvas control; Window, ContainerControl, Realbasic.Point, Realbasic.Rect classes.