Rectangle class

Rectangle class

Represents a set of four integers that define the location and size of a rectangle.

The Rectangle type exposes the following members:

Methods

Method Description
to_string Returns a string that represents this instance.

Properties

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

Fields

Field Description
EMPTY Gets the empty rectangle.

See Also