The x coordinate of the top-left corner of the Rectangle.
The y coordinate of the top-left corner of the Rectangle.
The width of the Rectangle. Should always be either zero or a positive value.
The height of the Rectangle. Should always be either zero or a positive value.
The sum of the y and height properties.
The sum of the y and height properties. Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.
The location of the Rectangles bottom left corner as a Point object.
The location of the Rectangles bottom left corner as a Point object. Gets or sets the location of the Rectangles bottom left corner as a Point object.
The location of the Rectangles bottom right corner as a Point object.
The location of the Rectangles bottom right corner as a Point object. Gets or sets the location of the Rectangles bottom right corner as a Point object.
The x coordinate of the center of the Rectangle.
The y coordinate of the center of the Rectangle.
Determines whether or not this Rectangle object is empty.
Determines whether or not this Rectangle object is empty. A Rectangle object is empty if its width or height is less than or equal to 0. If set to true then all of the Rectangle properties are set to 0. Gets or sets the Rectangles empty state.
Half of the height of the Rectangle.
Half of the width of the Rectangle.
The height of the Rectangle.
The height of the Rectangle. Should always be either zero or a positive value.
The x coordinate of the left of the Rectangle.
The x coordinate of the left of the Rectangle. Changing the left property of a Rectangle object has no effect on the y and height properties. However it does affect the width property, whereas changing the x value does not affect the width property.
The perimeter size of the Rectangle.
The perimeter size of the Rectangle. This is the sum of all 4 sides.
A random value between the left and right values (inclusive) of the Rectangle.
A random value between the top and bottom values (inclusive) of the Rectangle.
The sum of the x and width properties.
The sum of the x and width properties. Changing the right property of a Rectangle object has no effect on the x, y and height properties, however it does affect the width property.
The y coordinate of the top of the Rectangle.
The y coordinate of the top of the Rectangle. Changing the top property of a Rectangle object has no effect on the x and width properties. However it does affect the height property, whereas changing the y value does not affect the height property.
The location of the Rectangles top left corner as a Point object.
The location of the Rectangles top right corner as a Point object.
The location of the Rectangles top right corner as a Point object. The location of the Rectangles top left corner as a Point object.
The const type of this object.
The volume of the Rectangle derived from width * height.
The width of the Rectangle.
The width of the Rectangle. Should always be either zero or a positive value.
The x coordinate of the top-left corner of the Rectangle.
The y coordinate of the top-left corner of the Rectangle.
Creates a new Rectangle object with the top-left corner specified by the x and y parameters and with the specified width and height parameters. If you call this function without parameters, a Rectangle with x, y, width, and height properties set to 0 is created.