Stores a set of four integers that represent the location and size of a rectangle. Instances of this class are immutable.
The following tables list the members exposed by the RectangleD type.
Name | Description | |
---|---|---|
![]() |
Overloaded. Initializes a new instance of the RectangleD class. |
Name | Description | |
---|---|---|
![]() ![]() |
Represents a rectangle with all properties set to zero. |
Name | Description | |
---|---|---|
![]() |
Cloneable.clone implementation. |
|
![]() |
Overloaded. Checks if a point or a rectangle is contained within this rectangle. |
|
![]() |
Checks whether this rectangle has the same values as the specified object. |
|
![]() ![]() |
Creates a new RectangleD with the specified edge locations. |
|
![]() |
Gets the y-coordinate of the bottom side of this rectangle. |
|
![]() |
Gets the height of the upper-left corner of this rectangle. |
|
![]() |
Gets the x-coordinate of the left side of this rectangle. |
|
![]() |
Gets the coordinates of the upper-left corner of this rectangle. |
|
![]() |
Gets the x-coordinate of the right side of this rectangle. |
|
![]() |
Gets the size of this rectangle. |
|
![]() |
Gets the y-coordinate of the top side of this rectangle. |
|
![]() |
Gets the width of the upper-left corner of this rectangle. |
|
![]() |
Gets the x-coordinate of the upper-left corner of this rectangle. |
|
![]() |
Gets the y-coordinate of the upper-left corner of this rectangle. |
|
![]() |
Returns a hash code for the rectangle. |
|
![]() |
Overloaded. Inflates the current rectangle with a specified amount. |
|
![]() |
Inflates the bottom side of the current rectangle with the specified amount and returns a new RectangleD object representing the result. |
|
![]() |
Inflates the left side of the current rectangle with the specified amount and returns a new RectangleD object representing the result. |
|
![]() |
Inflates the right side of the current rectangle with the specified amount and returns a new RectangleD object representing the result. |
|
![]() |
Inflates the top side of the current rectangle with the specified amount and returns a new RectangleD object representing the result. |
|
![]() |
Intersects the specified rectangles and returns a new RectangleD object representing the intersection. |
|
![]() |
Overloaded. Determines if this rectangle intersects with a specified rectangle. |
|
![]() |
Gets a value indicating whether all properties of this rectangles have values of zero. |
|
![]() |
Returns a normalized representation of the current rectangle, that is, a rectangle with non-negative dimensions. |
|
![]() |
Overloaded. Translates this rectangle by a specified amount. |
|
![]() |
Externalizable.readExternal implementation. |
|
![]() ![]() |
Creates a new Rectangle object created from the specified rectangle by rounding all properties to the nearest integer number. |
|
![]() |
Converts this rectangle to a human-readable string. |
|
![]() |
Returns a RectangleD object that contains the union of this rectangle and the specified rectangle. |
|
![]() |
Creates a new rectangle with height set to the specified value and all other values equal to that of the current rectangle. |
|
![]() |
Creates a new rectangle with width set to the specified value and all other values equal to that of the current rectangle. |
|
![]() |
Creates a new rectangle with x-coordinate set to the specified value and all other values equal to that of the current rectangle. |
|
![]() |
Creates a new rectangle with y-coordinate set to the specified value and all other values equal to that of the current rectangle. |
|
![]() |
Externalizable.writeExternal implementation. |