Represents a rectangle.
The following tables list the members exposed by the Rect type.
Name | Description | |
---|---|---|
Initializes a new instance of the Rect class. |
Name | Description | |
---|---|---|
The height of the rectangle. |
||
The width of the rectangle. |
||
The x-coordinate of the upper-left corner of the rectangle. |
||
The y-coordinate of the upper-left corner of the rectangle. |
Name | Description | |
---|---|---|
Gets the y-coordinate that is the sum of the y and height values of this Rect object. |
||
Gets the bottom-left edge of this Rect object. |
||
Gets the bottom-right edge of this Rect object. |
||
Gets the center of this Rect object. |
||
Creates a Rect object identical to the current object. |
||
Determines if the rectangular region represented by rect is entirely contained within this Rect object. |
||
Determines if the specified point is contained within this Rect object. |
||
Specifies whether this Rect contains the same coordinates as the specified rectangle. |
||
Creates a Rect object with the specified edge locations. |
||
Returns a Rect object representing the intersection of the current rectangle with the specified rectangle. |
||
Checks if this Rect intersects with the specified rect. |
||
Gets a value indicating whether this Rect is empty. |
||
Gets the x-coordinate of the left edge of this Rect object. |
||
Gets the x-coordinate that is the sum of x and width values of this Rect. |
||
Sets the center of this Rect object. |
||
Sets the top-left edge of this Rect object. |
||
Gets the y-coordinate of the top edge of this Rect object. |
||
Gets the top-left edge of this Rect. |
||
Gets the top-middle of this Rect object. |
||
Gets the top-right edge of this Rect object. |
||
Returns a Rect object representing the union of the current rectangle with the specified rectangle. |