Int32Rect Structure
Describes the width, height, and location of an integer rectangle.
Assembly: WindowsBase (in WindowsBase.dll)
| Name | Description | |
|---|---|---|
![]() | Int32Rect(Int32, Int32, Int32, Int32) |
| Name | Description | |
|---|---|---|
![]() ![]() | Empty | Gets the empty rectangle, a special value that represents a rectangle with no position or area. |
![]() | HasArea | |
![]() | Height | Gets or sets the height of the rectangle. |
![]() | IsEmpty | Gets a value indicating whether the rectangle is empty. |
![]() | Width | Gets or sets the width of the rectangle. |
![]() | X | Gets or sets the x-coordinate of the top-left corner of the rectangle. |
![]() | Y | Gets or sets the y-coordinate of the top-left corner of the rectangle. |
| Name | Description | |
|---|---|---|
![]() | Equals(Int32Rect) | Determines whether the specified rectangle is equal to this rectangle. |
![]() ![]() | Equals(Int32Rect, Int32Rect) | Determines whether the specified rectangles are equal. |
![]() | Equals(Object^) | Determines whether the specified rectangle is equal to this rectangle.(Overrides ValueType::Equals(Object^).) |
![]() | GetHashCode() | Creates a hash code from this rectangle's X, Y, Width, and Height values.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() ![]() | Parse(String^) | Creates an Int32Rect structure from the specified String representation. |
![]() | ToString() | Creates a string representation of this Int32Rect.(Overrides ValueType::ToString().) |
![]() | ToString(IFormatProvider^) | Creates a string representation of this Int32Rect based on the supplied IFormatProvider. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(Int32Rect, Int32Rect) | Compares two rectangles for exact equality. |
![]() ![]() | Inequality(Int32Rect, Int32Rect) | Compares two rectangles for inequality. |
| Name | Description | |
|---|---|---|
![]() ![]() | IFormattable::ToString(String^, IFormatProvider^) | Formats the value of the current instance using the specified format. |
<object property="X,Y,Width,Height"/> - or <object property="Empty"/>
- X
The x-coordinate of the top-left corner of the rectangle.
- Y
The y-coordinate of the top-left corner of the rectangle.
- Width
The width of the rectangle.
- Height
The height of the rectangle.
You can also use whitespace instead of commas to delimit values. Whitespace can also be used with a comma delimited value set.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





