.NET Framework Class Library
Rect Methods
The Rect type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
Contains(Point) | Indicates whether the rectangle contains the specified point. |
|
Contains(Rect) | Indicates whether the rectangle contains the specified rectangle. |
|
Contains(Double, Double) | Indicates whether the rectangle contains the specified x-coordinate and y-coordinate. |
|
Equals(Object) | Indicates whether the specified object is equal to the current rectangle. (Overrides ValueType.Equals(Object).) |
|
Equals(Rect) | Indicates whether the specified rectangle is equal to the current rectangle. |
|
Equals(Rect, Rect) | Indicates whether the specified rectangles are equal. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Creates a hash code for the rectangle. (Overrides ValueType.GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Inflate(Size) | Expands the rectangle by using the specified Size, in all directions. |
|
Inflate(Double, Double) | Expands or shrinks the rectangle by using the specified width and height amounts, in all directions. |
|
Inflate(Rect, Size) | Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions. |
|
Inflate(Rect, Double, Double) | Creates a rectangle that results from expanding or shrinking the specified rectangle by the specified width and height amounts, in all directions. |
|
Intersect(Rect) | Finds the intersection of the current rectangle and the specified rectangle, and stores the result as the current rectangle. |
|
Intersect(Rect, Rect) | Returns the intersection of the specified rectangles. |
|
IntersectsWith | Indicates whether the specified rectangle intersects with the current rectangle. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Offset(Vector) | Moves the rectangle by the specified vector. |
|
Offset(Double, Double) | Moves the rectangle by the specified horizontal and vertical amounts. |
|
Offset(Rect, Vector) | Returns a rectangle that is offset from the specified rectangle by using the specified vector. |
|
Offset(Rect, Double, Double) | Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts. |
|
Parse | Creates a new rectangle from the specified string representation. |
|
Scale | Multiplies the size of the current rectangle by the specified x and y values. |
|
ToString() | Returns a string representation of the rectangle. (Overrides ValueType.ToString().) |
|
ToString(IFormatProvider) | Returns a string representation of the rectangle by using the specified format provider. |
|
Transform(Matrix) | Transforms the rectangle by applying the specified matrix. |
|
Transform(Rect, Matrix) | Returns the rectangle that results from applying the specified matrix to the specified rectangle. |
|
Union(Point) | Expands the current rectangle exactly enough to contain the specified point. |
|
Union(Rect) | Expands the current rectangle exactly enough to contain the specified rectangle. |
|
Union(Rect, Point) | Creates a rectangle that is exactly large enough to include the specified rectangle and the specified point. |
|
Union(Rect, Rect) | Creates a rectangle that is exactly large enough to contain the two specified rectangles. |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
IFormattable.ToString | Formats the value of the current instance using the specified format. |
See Also