Rect Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Rect type exposes the following members.
| Name | Description | |
|---|---|---|
|
Contains | Indicates whether the rectangle described by the Rect contains the specified point. |
|
Equals(Object) | Indicates whether the specified object is equal to the current Rect. (Overrides ValueType.Equals(Object).) |
|
Equals(Rect) | Indicates whether the specified Rect is equal to the current Rect. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Creates a hash code for the Rect. (Overrides ValueType.GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Intersect | Finds the intersection of the rectangle represented by the current Rect and the rectangle represented by the specified Rect, and stores the result as the current Rect. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString() | Returns a string representation of the Rect structure. (Overrides ValueType.ToString().) |
|
ToString(IFormatProvider) | Returns a string representation of the rectangle by using the specified format provider. |
|
Union(Point) | Expands the rectangle represented by the current Rect exactly enough to contain the specified point. |
|
Union(Rect) | Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle. |
| Name | Description | |
|---|---|---|
|
IFormattable.ToString | Infrastructure. For a description of this member, see ToString. |
Show: