[]
Structure specifing a rectangle with double Left, Top, Right, Bottom coordinates.
public struct RectD : IEquatable<RectD>
Name | Description |
---|---|
RectD(RectF) | Initializes a new instance of the RectD struct. |
RectD(Rect) | Initializes a new instance of the RectD struct. |
RectD(double, double) | Initializes a new instance of the RectD struct. |
RectD(double, double, double, double) | Initializes a new instance of the RectD struct. |
RectD(RectangleF) | Initializes a new instance of the RectD struct. |
Name | Description |
---|---|
Bottom | The y-coordinate of the bottom edge. |
Empty | An empty rectangle. |
Infinite | A rectangle that has its upper-left corner set to (negative infinity, negative infinity) and its lower-right corner set to (infinity, infinity). |
Left | The x-coordinate of the left edge. |
Right | The x-coordinate of the right edge. |
SizeInBytes | The size of the RectD type, in bytes. |
Top | The y-coordinate of the top edge. |
Name | Description |
---|---|
Center | Gets the point with coordinates of the rectangle center. |
HasSpace | Determines if there is some space within the rectangle. |
Height | Gets or sets the height of the rectangle. |
IsEmpty | Determines if all components of RectD are equal to zero. |
Location | Gets the point with coordinates of the left top corner of the rectangle. |
Size | Gets the size of the rectangle. |
Width | Gets or sets the width of the rectangle. |
X | Gets or sets the X coordinate of the rectangle. |
Y | Gets or sets the Y coordinate of the rectangle. |
Name | Description |
---|---|
Circumscribe() | Returns a RectL with circumscribed coordinates. |
Contains(RectD) | Determines if the specified rectangle is fully contained within this rectangle. |
Contains(double, double) | Determines if the specified point is contained within this rectangle. |
ContainsRef(ref RectD) | Determines if the specified rectangle is fully contained within this rectangle. |
Equals(RectD) | Indicates whether this instance and a specified object are equal. |
Equals(object) | Indicates whether this instance and a specified object are equal. |
EqualsRef(ref RectD) | Indicates whether this instance and a specified object are equal. |
FromDips(RectD, float, float) | Converts a rectangle from DIPs to pixels. |
FromDips(float, float) | Converts a rectangle from DIPs to pixels. |
FromLTRB(double, double, double, double) | Creates a RectD struct from (left, top, right, bottom) coordinates. |
GetHashCode() | Returns a hash code for this instance. |
Inflate(RectD, double, double) | Inflates the rectangle by the specified amount. |
Inflate(double, double) | Inflates the rectangle by the specified amount. |
Intersect(RectD, RectD) | Returns a rectangle that represents the intersection of two rectangles. |
IntersectFast(ref RectD) | Quickly updates a rectangle to represent the intersection with another rectangle. |
IntersectRef(out RectD, ref RectD, ref RectD) | Returns a rectangle that represents the intersection of two rectangles. |
IntersectsWith(RectD) | Determines if this rectangle intersects with rect. |
IntersectsWithRef(ref RectD) | Determines if this rectangle intersects with rect. |
MakeLTRB() | Converts the rectangle from (X, Y, Width, Height) to (Left, Top, Right, Bottom) coordinates. |
MakeXYWH() | Converts the rectangle from (Left, Top, Right, Bottom) to (X, Y, Width, Height) coordinates. |
Offset(RectD, Size2D) | Offsets the rectangle by the specified amount. |
Offset(RectD, double, double) | Offsets the rectangle by the specified amount. |
Offset(double, double) | Offsets the rectangle by the specified amount. |
Round() | Returns a RectL with rounded coordinates. |
Scale(RectD, double) | Scales all coordinates of a rectangle by the specified scaleFactor. |
Scale(RectD, double, double) | Scales all coordinates of a rectangle by the specified scaleX and scaleY. |
Scale(double) | Scales all coordinates of a rectangle by the specified scaleFactor. |
Scale(double, double) | Scales all coordinates of a rectangle by the specified scaleX and scaleY. |
ToDips(RectD, float, float) | Converts a rectangle from pixels to DIPs. |
ToDips(float, float) | Converts a rectangle from pixels to DIPs. |
ToRect() | Converts RectD to C1.Win.Interop.Rect. |
ToRectF() | |
ToRectangleF() | Converts RectD to RectangleF. |
ToString() | Returns a string that represents the current object. |
Truncate() | Returns a RectL with truncated coordinates. |
Union(RectD, RectD) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
UnionRef(out RectD, ref RectD, ref RectD) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
Name | Description |
---|---|
operator ==(RectD, RectD) | Determines if the specified values are equal. |
explicit operator Rect(RectD) | Performs an explicit conversion from RectD to C1.Win.Interop.Rect. |
explicit operator RectD(Rect) | Performs an explicit conversion from C1.Win.Interop.Rect to RectD. |
operator !=(RectD, RectD) | Determines if the specified values are not equal. |