Rectangle Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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. |