[]
Stores a set of four double values that represent the location and size of a rectangle.
[TypeConverter(typeof(RectangleD.TypeConverter))]
public struct RectangleD
Name | Description |
---|---|
RectangleD(PointD, SizeD) | Initializes a new instance of the RectangleD structure. |
RectangleD(double, double, double, double) | Initializes a new instance of the RectangleD structure. |
Name | Description |
---|---|
Bottom | Gets the Y coordinate of the bottom edge of the current RectangleD structure. |
BottomLeft | Gets the coordinates of the bottom left corner of the current RectangleD structure. |
BottomRight | Gets the coordinates of the bottom right corner of the current RectangleD structure. |
Empty | Represents an empty instance of the RectangleD structure. |
Height | Gets or sets the height of the current RectangleD structure. |
IsEmpty | Gets a value indicating whether the Width and Height properties of the current RectangleD structure have zero values. |
Left | Gets the X coordinate of the left edge of the current RectangleD structure. |
Location | Gets or sets the coordinates of the top left corner of the current RectangleD structure. |
Right | Gets the X coordinate of the right edge of the current RectangleD structure. |
Size | Gets or sets the size of the current RectangleD structure. |
Top | Gets the Y coordinate of the top edge of the current RectangleD structure. |
TopLeft | Gets the coordinates of the top left corner of the current RectangleD structure. |
TopRight | Gets the coordinates of the top right corner of the current RectangleD structure. |
Width | Gets or sets the width of the current RectangleD structure. |
X | Gets or sets the X coordinate of the top left corner of the current RectangleD structure. |
Y | Gets or sets the Y coordinate of the top left corner of the current RectangleD structure. |
Name | Description |
---|---|
Contains(PointD) | Tests whether the specified point is contained within the current RectangleD. |
Contains(RectangleD) | Tests whether the specified rectangle is entirely contained within the current RectangleD. |
Contains(double, double) | Tests whether a point specified by its coordinates is contained within the current RectangleD. |
FromLTRB(double, double, double, double) | Creates a RectangleD structure based on the coordinates of its top-left and bottom-right corners. |
Inflate(RectangleD, double, double) | Creates a new RectangleD structure from another RectangleD, inflated by the specified amounts vertically and horizontally. |
Inflate(SizeD) | Inflates the current RectangleD by a specified SizeD. |
Inflate(double, double) | Inflates the current RectangleD by specified horizontal and vertical amounts. |
Inflate(double, double, double, double) | Inflates the current RectangleD by the specified amounts on four sides. |
Intersect(RectangleD) | Replaces the current RectangleD structure with the intersection of itself and another RectangleD. |
Intersect(RectangleD, RectangleD) | Creates a new RectangleD structure representing the intersection of two RectangleD structures. (The intersection may be empty, in which case Empty is returned.) |
IntersectsWith(RectangleD) | Tests whether the current RectangleD intersects with another. |
Offset(PointD) | Offsets the location of the current RectangleD by horizontal and vertical amounts specified by a PointD. |
Offset(double, double) | Offsets the location of the current RectangleD by specified horizontal and vertical amounts. |
Parse(string, out RectangleD, bool) | Converts a string to a RectangleD structure. |
ToRectangle() | Converts the current RectangleD to a Rectangle. |
ToRectangleF() | Converts the current RectangleD to a RectangleF. |
ToString() | Converts the current RectangleD structure to a human-readable string representing it. |
Union(RectangleD, RectangleD) | Creates a new RectangleD structure representing the smallest possible rectangle containing the two specified rectangles. |
Name | Description |
---|---|
implicit operator RectangleD(Rectangle) | Converts a Rectangle to a RectangleD. |
implicit operator RectangleD(RectangleF) | Converts a RectangleF to a RectangleD. |