[]
Defines a RectF. This structure is slightly different from System.Drawing.RectangleF as
it is internally storing Left, Top, Right, Bottom instead of Left, Top, Width, Height.
public struct RectF : IEquatable<RectF>
Name | Description |
---|---|
RectF(RectD) | Initializes a new instance of the RectF struct. |
RectF(Rect) | Initializes a new instance of the RectF struct. |
RectF(RectangleF) | Initializes a new instance of the RectF struct. |
RectF(float, float) | Initializes a new instance of the RectF struct. |
RectF(float, float, float, float) | Initializes a new instance of the RectF 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 RectF 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 RectF 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(RectF) | Determines if the specified rectangle is fully contained within this rectangle. |
Contains(float, float) | Determines if the specified point is contained within this rectangle. |
ContainsRef(ref RectF) | Determines if the specified rectangle is fully contained within this rectangle. |
Equals(RectF) | Indicates whether this instance and a specified object are equal. |
Equals(object) | Indicates whether this instance and a specified object are equal. |
EqualsRef(ref RectF) | Indicates whether this instance and a specified object are equal. |
FromDips(RectF, float, float) | Converts a rectangle from DIPs to pixels. |
FromDips(float, float) | Converts a rectangle from DIPs to pixels. |
FromLTRB(float, float, float, float) | Creates a RectF struct from (left, top, right, bottom) coordinates. |
GetHashCode() | Returns a hash code for this instance. |
Inflate(RectF, float, float) | Inflates the rectangle by the specified amount. |
Inflate(float, float) | Inflates the rectangle by the specified amount. |
Intersect(RectF, RectF) | Returns a rectangle that represents the intersection of two rectangles. |
IntersectFast(ref RectF) | Quickly updates a rectangle to represent the intersection with another rectangle. |
IntersectRef(out RectF, ref RectF, ref RectF) | Returns a rectangle that represents the intersection of two rectangles. |
IntersectsWith(RectF) | Determines if this rectangle intersects with rect. |
IntersectsWithRef(ref RectF) | 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(RectF, Size2F) | Offsets the rectangle by the specified amount. |
Offset(RectF, float, float) | Offsets the rectangle by the specified amount. |
Offset(float, float) | Offsets the rectangle by the specified amount. |
Round() | Returns a RectL with rounded coordinates. |
Scale(RectF, float) | Scales all coordinates of a rectangle by the specified scaleFactor. |
Scale(RectF, float, float) | Scales all coordinates of a rectangle by the specified scaleX and scaleY. |
Scale(float) | Scales all coordinates of a rectangle by the specified scaleFactor. |
Scale(float, float) | Scales all coordinates of a rectangle by the specified scaleX and scaleY. |
ToDips(RectF, float, float) | Converts a rectangle from pixels to DIPs. |
ToDips(float, float) | Converts a rectangle from pixels to DIPs. |
ToRect() | Converts RectF to C1.Win.Interop.Rect. |
ToRectD() | |
ToRectangleF() | Converts RectF to RectangleF. |
ToString() | Returns a string that represents the current object. |
Transform(Matrix3x2) | Transforms a rectangle by the 3x2 matrix. |
Transform(RectF, Matrix3x2) | Transforms a rectangle by the 3x2 matrix. |
TransformRef(ref Matrix3x2) | Transforms a rectangle by the 3x2 matrix. |
TransformRef(out RectF, ref RectF, ref Matrix3x2) | Transforms a rectangle by the 3x2 matrix. |
Truncate() | Returns a RectL with truncated coordinates. |
Union(RectF, RectF) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
UnionRef(out RectF, ref RectF, ref RectF) | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
Name | Description |
---|---|
operator ==(RectF, RectF) | Determines if the specified values are equal. |
explicit operator Vector4(RectF) | |
explicit operator Rect(RectF) | Performs an explicit conversion from RectF to C1.Win.Interop.Rect. |
explicit operator RectangleF(RectF) | Performs an explicit conversion from RectF to RectangleF. |
explicit operator RectF(Vector4) | |
explicit operator RectF(Rect) | Performs an explicit conversion from C1.Win.Interop.Rect to RectF. |
explicit operator RectF(RectangleF) | Performs an explicit conversion from RectangleF to RectF. |
operator !=(RectF, RectF) | Determines if the specified values are not equal. |