Rectangle Struct
Definition
Represents a rectangular region of the screen.
<!--We use this structure instead of System.Drawing.Rectangle because S.D.R
is way overkill and would bring in another assembly.-->
public struct 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 rectanngle |
| 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 |