Share via


Rectangle Struct

Definition

Represents a rectangular region of the screen.

public value class Rectangle
public struct Rectangle
type Rectangle = struct
Public Structure Rectangle
Inheritance
Rectangle

Constructors

Rectangle(Coordinates, Coordinates)

Initializes a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values by upperLeft, the upper left corner and lowerRight, the lower right corner.

Rectangle(Int32, Int32, Int32, Int32)

Initialize a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values.

Properties

Bottom

Gets and sets the bottom of the rectangle.

Left

Gets and sets the left side of the rectangle.

Right

Gets and sets the right side of the rectangle.

Top

Gets and sets the top of the rectangle.

Methods

Equals(Object)

Overrides Equals(Object)

GetHashCode()

Overrides GetHashCode()

ToString()

Overloads ToString()

Operators

Equality(Rectangle, Rectangle)

Compares two instances for equality.

Inequality(Rectangle, Rectangle)

Compares two instances for inequality.

Applies to