| Rect Structure |
Namespace: Windows.Foundation
public struct Rect
The Rect type exposes the following members.
| Name | Description | |
|---|---|---|
| Rect(Point, Point) |
Initializes a Windows.Foundation.Rect structure that
is exactly large enough to contain the two specified points.
| |
| Rect(Point, Size) |
Initializes a Windows.Foundation.Rect structure based
on an origin and size.
| |
| Rect(Double, Double, Double, Double) |
Initializes a Windows.Foundation.Rect structure that
has the specified x-coordinate, y-coordinate, width, and height.
|
| Name | Description | |
|---|---|---|
| Contains |
Indicates whether the rectangle described by the Windows.Foundation.Rect
contains the specified point.
| |
| Equals(Object) |
Indicates whether the specified object is equal to the
current Windows.Foundation.Rect.
(Overrides ValueTypeEquals(Object).) | |
| Equals(Rect) |
Indicates whether the specified Windows.Foundation.Rect
is equal to the current Windows.Foundation.Rect.
| |
| GetHashCode |
Creates a hash code for the Windows.Foundation.Rect.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString |
Returns a string representation of the Windows.Foundation.Rect
structure.
(Overrides ValueTypeToString.) | |
| Union(Point) |
Expands the rectangle represented by the current Windows.Foundation.Rect
exactly enough to contain the specified point.
| |
| Union(Rect) |
Expands the rectangle represented by the current Windows.Foundation.Rect
exactly enough to contain the specified rectangle.
|
| Name | Description | |
|---|---|---|
| Equality |
Compares two Windows.Foundation.Rect structures for equality.
| |
| Inequality |
Compares two Windows.Foundation.Rect structures for inequality.
|
| Name | Description | |
|---|---|---|
| Bottom |
Gets the y-axis value of the bottom of the rectangle.
| |
| Empty |
Gets a special value that represents a rectangle with
no position or area.
| |
| Height |
Gets or sets the height of the rectangle.
| |
| IsEmpty |
Gets a value that indicates whether the rectangle is
the Windows.Foundation.Rect.Empty rectangle.
| |
| Left |
Gets the x-axis value of the left side of the rectangle.
| |
| Right |
Gets the x-axis value of the right side of the rectangle.
| |
| Top |
Gets the y-axis position of the top of the rectangle.
| |
| Width |
Gets or sets the width of the rectangle.
| |
| X |
Gets or sets the x-axis value of the left side of the
rectangle.
| |
| Y |
Gets or sets the y-axis value of the top side of the
rectangle.
|