Struct Rectangle

Rectangle structure

Rectangle structure

public struct Rectangle

Constructors

Name Description
Rectangle(float, float, float, float) Initializes a new instance of the Rectangle struct.

Properties

Name Description
Height { get; set; } Gets or sets the height of the rectangle
Width { get; set; } Gets or sets the width of the rectangle
X { get; set; } Gets or sets the X coordinate
Y { get; set; } Gets or sets the Y coordinate

Methods

Name Description
override Equals(object) Determines whether the specified rectangle is equal to the current rectangle.
override GetHashCode() Serves as the default hash function.
operator == Compares two Rectangle objects. The result specifies whether the values of the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height properties of the two Rectangle objects are equal.
operator != Compares two Rectangle objects. The result specifies whether the values of the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height properties of the two Rectangle objects are not equal.

See Also