Rectangle

Rectangle structure

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

public struct Rectangle

Properties

Name Description
static Empty { get; } Gets the empty rectangle.
Bottom { get; } Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
Height { get; } Gets the height.
IsEmpty { get; } Gets a value indicating whether this instance is empty.
Left { get; } Gets the x-coordinate of the left edge of the rectangle.
Right { get; } Gets the x-coordinate that is the sum of X and Width property values of the rectangle.
Top { get; } Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.
Width { get; } Gets the width.
X { get; } Gets the x.
Y { get; } Gets the y.

Methods

Name Description
override ToString() Returns a String that represents this instance.

See Also