The following tables list the members exposed by Rect.
Name | Description | |
---|---|---|
Rect Constructor | Overloaded. |
Name | Description | |
---|---|---|
Bottom | The bottom of the rectangle (read-only) | |
Empty | Returns an empty rect | |
Height | Gets/sets the height of the Rectangle | |
IsEmpty | Returns whether the rect is empty (read-only) | |
Left | The left edge of the rectangle (read-only) | |
Right | The right edge of the rectangle (read-only) | |
Top | The top of the rectangle (read-only) | |
Width | Gets/sets the width of the Rectangle | |
X | Gets/sets the left edge of the Rectangle | |
Y | Gets/sets the top edge of the Rectangle |
Name | Description | |
---|---|---|
Contains | Overloaded. Determines if this rect contains a point | |
Equals | Determines if the object is equal to this obect | |
GetHashCode | Returns a hash code | |
Inflate | Inflates this rect | |
Intersect | Modifies this rect to be the intersection of itself with the passed in rect | |
IntersectsWith | Determines if this rect intersects with the passed in rect. | |
ToString | Returns a string containing the X, Y, Width and Height values | |
Union | Modifies this rect to the the union of itself and the passed in rect |
Equality | == operator |
Inequality | != operator |