Rectangle |
[SerializableAttribute] public struct RectangleD2D : IEquatable<RectangleD2D>
The RectangleD2D type exposes the following members.
| Name | Description | |
|---|---|---|
| RectangleD2D(PointD2D, PointD2D) | Initializes a new instance of the RectangleD2D struct. | |
| RectangleD2D(Double, Double, Double, Double) | Initializes a new instance of the RectangleD2D struct. |
| Name | Description | |
|---|---|---|
| Bottom | Gets the y coordinate of the bottom. | |
| BottomHalf | Gets a new rectangle that is the bottom half of this rectangle. | |
| CenterBottom | Gets the center(x)-bottom(y) point of the rectangle. | |
| CenterCenter | Gets the center(x)-center(y) point of the rectangle. | |
| CenterTop | Gets the center(x)-top(y) point of the rectangle. | |
| Empty | Gets the empty rectangle with the location (0, 0). | |
| Height | Gets or sets the height of the rectangle. | |
| IsEmpty | Gets a value indicating whether the rectangle is empty. Per definition, it is empty if both width and height are zero. | |
| Left | Gets the x coordinate of the left. | |
| LeftBottom | Gets the left(x)-bottom(y) point of the rectangle. | |
| LeftCenter | Gets the left(x)-center(y) point of the rectangle. | |
| LeftHalf | Gets a new rectangle that is the left half of this rectangle. | |
| LeftTop | Gets the left(x)-top(y) point of the rectangle. | |
| Location | Gets or sets the location (of the left-top corner of the rectangle). | |
| OuterCircleBoundingBox | Gets a rectangle that includes the smallest circle around this rectangle. | |
| Right | Gets the x coordinate of the right. | |
| RightBottom | Gets the right(x)-bottom(y) point of the rectangle. | |
| RightCenter | Gets the right(x)-center(y) point of the rectangle. | |
| RightHalf | Gets a new rectangle that is the right half of this rectangle. | |
| RightTop | Gets the right(x)-top(y) point of the rectangle. | |
| Size | Gets or sets the size of the rectangle. | |
| Top | Gets the y coordinate of the top. | |
| TopHalf | Gets a new rectangle that is the top half of this rectangle. | |
| Vertices | Gets the vertices in binary order (x: 0th digit, y: 1st digit). | |
| Width | Gets or sets the width of the rectangle. | |
| X | Gets or sets the x location (the x coordinate of the left side). | |
| Y | Gets or sets the y location (the y coordinate of the top side). |
| Name | Description | |
|---|---|---|
| Contains(PointD2D) | ||
| Contains(RectangleD2D) | ||
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| Equals(RectangleD2D) | Indicates whether the current object is equal to another object of the same type. | |
| Expand | Expands the rectangle by the specified margin. | |
| ExpandToInclude(PointD2D) | Expands this rectangle, so that it contains the point p. | |
| ExpandToInclude(RectangleD2D) | Expands this rectangle, so that it now includes its former shape, and the rectangle provided in the argument. | |
| ExpandToInclude(NullableRectangleD2D, NullableRectangleD2D) | Gets the rectangular bounding box that includes both rectangles. | |
| FromLTRB(PointD2D, PointD2D) | Creates a rectangle from the left, top, right and bottom coordinate values. | |
| FromLTRB(Double, Double, Double, Double) | Creates a rectangle from the left, top, right and bottom coordinate values. | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Inflate | Inflates the rectangle by the specified values x and y. | |
| IntersectsWith | Tests if this rectangle and the provided rectangle intersects. | |
| NewRectangleIncludingAllPoints | Creates a rectangle that includes all the provided points. | |
| Offset | Changes the location of the rectangle by the specified values for x and y. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
| Name | Description | |
|---|---|---|
| GetIncludedTransformedRectangle |
Calculates the dimensions of the greatest (by area) rectangle included in an outer rectangle, where the inner rectangle is rotated/sheared/scaled.
(Defined by RectangleD2DExtensions) | |
| ToGdi | (Defined by GeometryToSystemDrawingConversions) | |
| ToGdiRectangle | (Defined by GeometryToSystemDrawingConversions) |