Rectangle Methods
.NET Framework 4
The Rectangle type exposes the following members.
| Name | Description | |
|---|---|---|
|
Ceiling | Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values. |
|
Contains(Point) | Determines if the specified point is contained within this Rectangle structure. |
|
Contains(Rectangle) | Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure. |
|
Contains(Int32, Int32) | Determines if the specified point is contained within this Rectangle structure. |
|
Equals | Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure. (Overrides ValueType.Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FromLTRB | Creates a Rectangle structure with the specified edge locations. |
|
GetHashCode | Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode . (Overrides ValueType.GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Inflate(Size) | Enlarges this Rectangle by the specified amount. |
|
Inflate(Int32, Int32) | Enlarges this Rectangle by the specified amount. |
|
Inflate(Rectangle, Int32, Int32) | Creates and returns an enlarged copy of the specified Rectangle structure. The copy is enlarged by the specified amount. The original Rectangle structure remains unmodified. |
|
Intersect(Rectangle) | Replaces this Rectangle with the intersection of itself and the specified Rectangle. |
|
Intersect(Rectangle, Rectangle) | Returns a third Rectangle structure that represents the intersection of two other Rectangle structures. If there is no intersection, an empty Rectangle is returned. |
|
IntersectsWith | Determines if this rectangle intersects with rect. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Offset(Point) | Adjusts the location of this rectangle by the specified amount. |
|
Offset(Int32, Int32) | Adjusts the location of this rectangle by the specified amount. |
|
Round | Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values. |
|
ToString |
Converts the attributes of this Rectangle to a human-readable string. (Overrides ValueType.ToString().) In XNA Framework 3.0, this member is inherited from Object.ToString(). |
|
Truncate | Converts the specified RectangleF to a Rectangle by truncating the RectangleF values. |
|
Union | Gets a Rectangle structure that contains the union of two Rectangle structures. |