Realbasic.Size

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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(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.