Rectangle class

Rectangle class

A set of four integers that represent the location and size of a rectangle.

The Rectangle type exposes the following members:

Constructors

Constructor Description
init Constructs a new instance of Rectangle

Properties

Property Description
empty Gets the empty rectangle.
x Gets the x.
y Gets the y.
width Gets the width.
height Gets the height.
left Gets the x-coordinate of the left edge of the rectangle.
top Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
right Gets the x-coordinate that is the sum of X and Width property values of the rectangle.
bottom Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
is_empty Gets a value indicating whether this instance is empty.

See Also