RectangleF Structure |
Namespace: Eto.Drawing
The RectangleF type exposes the following members.
Name | Description | |
---|---|---|
RectangleF(Rectangle) |
Initilizes a new instance of the RectangleF class with the specified rectangle.
| |
RectangleF(SizeF) |
Initializes a new instance of the Rectangle class with X, Y co-ordinates at 0,0 and the specified size | |
RectangleF(PointF, PointF) |
Initializes a new instance of the Rectangle class with two points
| |
RectangleF(PointF, SizeF) |
Initializes a new instance of the Rectangle class with the specified location and size | |
RectangleF(Single, Single, Single, Single) |
Initializes a new instance of the Rectangle class with the specified x, y, width, and height |
Name | Description | |
---|---|---|
Bottom |
Gets or sets the logical bottom of this rectangle (Y + Height if Height is positive, Y + 1 if negative)
| |
BottomLeft | ||
BottomRight | ||
Center |
Gets or sets the rectangle's center position
| |
EndLocation |
Gets the ending location of this rectangle
| |
Height |
Gets or sets the Height of this rectangle
| |
InnerBottom |
Gets or sets the bottom of the rectangle that is inside the bounds
| |
InnerBottomLeft |
Gets or sets the point at the InnerBottom and Left of the rectangle
| |
InnerBottomRight |
Gets or sets the point at the InnerBottom and InnerRight of the rectangle
| |
InnerRight |
Gets or sets the right of the rectangle that is inside the bounds
| |
InnerTopRight |
Gets or sets the point at the Top and InnerRight of the rectangle
| |
IsEmpty |
Gets a value indicating that the Size of this rectangle is empty (either the width or height are zero)
| |
IsZero |
Gets a value indicating that both the and Size of this rectangle are zero
| |
Left |
Gets or sets the logical left of this rectangle (X co-ordinate if Width is positive, X + Width if negative)
| |
Location |
Gets the location of this rectangle
| |
MiddleBottom | ||
MiddleLeft | ||
MiddleRight | ||
MiddleTop | ||
MiddleX |
Gets or sets the rectangle's middle horizontal position
| |
MiddleY |
Gets or sets the rectangle's middle vertical position
| |
Right |
Gets or sets the logical right of this rectangle (X + Width if Width is positive, X + 1 if negative)
| |
Size |
Gets or sets the size of the rectangle
| |
Top |
Gets or sets the logical top of this rectangle (Y co-ordinate if Height is positive, Y + Height if negative)
| |
TopLeft | ||
TopRight | ||
Width |
Gets or sets the Width of this rectangle
| |
X |
Gets or sets the X co-ordinate of the Location of this rectangle
| |
Y |
Gets or sets the Y co-ordinate of the Location of this rectangle
|
Name | Description | |
---|---|---|
Align(SizeF) |
Aligns the rectangle to a grid of the specified gridSize | |
Align(Single, Single) |
Aligns the rectangle to a grid of the specified gridWidth and gridHeight | |
Align(RectangleF, SizeF) |
Aligns the rectangle to a grid of the specified gridSize | |
Align(RectangleF, Single, Single) |
Aligns the rectangle to a grid of the specified gridWidth and gridHeight | |
Contains(PointF) |
Gets a value indicating that the specified point is within the bounds of this rectangle
| |
Contains(RectangleF) |
Gets a value indicating that the specified rectangle is entirely contained within the bounds of this rectangle
| |
Contains(Single, Single) |
Gets a value indicating that the specified x and y co-ordinates are within the bounds of this rectangle
| |
Distance(RectangleF, PointF) |
Calculates the distance between the specified point and rect.
| |
Distance(RectangleF, RectangleF) |
Calculates the distance between two rectangles.
| |
Equals(Object) |
Compares this rectangle to an object for equality
(Overrides ValueTypeEquals(Object).) | |
Equals(RectangleF) |
Compares this rectangle with the specified other rectangle
| |
FromCenter |
Creates a new instance of a RectangleF with a specified center and size | |
FromSides |
Creates a new instance of a RectangleF from the values of the left, top, right and bottom sides
| |
GetHashCode |
Gets the hash code for this rectangle
(Overrides ValueTypeGetHashCode.) | |
Inflate(SizeF) |
Inflates all dimensions of this rectangle by the specified size | |
Inflate(Single, Single) |
Inflates all dimensions of this rectangle by the specified width and height | |
Inflate(RectangleF, SizeF) |
Inflates all dimensions of the rectangle by the specified size | |
Inflate(RectangleF, Single, Single) |
Inflates all dimensions of this rectangle by the specified width and height | |
Intersect(RectangleF) |
Intersect the rectangle with the specified rectangle | |
Intersect(RectangleF, RectangleF) |
Intersect the two specified rectangles
| |
Intersects |
Gets a value indicating that the specified rectangle overlaps this rectangle
| |
Normalize | ||
Offset(PointF) |
Offsets the location of the rectangle by the X and Y values of the specified point | |
Offset(SizeF) |
Offsets the location of the rectangle by the specified size | |
Offset(Single, Single) |
Offsets the location of the rectangle by the specified x and y values
| |
Offset(RectangleF, PointF) |
Offsets the location of the rectangle by the X and Y values of the specified point | |
Offset(RectangleF, SizeF) |
Offsets the location of the rectangle by the specified size | |
Offset(RectangleF, Single, Single) |
Offsets the location of the rectangle by the specified x and y values
| |
Restrict(RectangleF) |
Restricts the rectangle to be within the specified rectangle | |
Restrict(SizeF) |
Restricts the rectangle to be within the specified size at an X,Y location of 0, 0
| |
Restrict(PointF, SizeF) |
Restricts the rectangle to be within the specified point and size | |
Restrict(Rectangle, Rectangle) |
Restricts the rectangle to be within the restrict rectangle
| |
ToString |
Converts this rectangle to a string
(Overrides ValueTypeToString.) | |
Union(RectangleF) |
Union the rectangle into this instance to encompass both rectangles
| |
Union(RectangleF, RectangleF) |
Combines two rectangles into one rectangle that encompasses both
|
Name | Description | |
---|---|---|
Addition(RectangleF, PointF) |
Adds the offset to the specified rectangle, moving its location
| |
Addition(RectangleF, SizeF) |
Adds the offset to the specified rectangle, moving its location
| |
Division(RectangleF, SizeF) |
Divides the specified rectangle by the Width and Height of size | |
Division(RectangleF, Single) |
Divides all X, Y, Width, Height components of the rectangle by a factor factor
| |
Equality |
Compares two rectangles for equality
| |
(Rectangle to RectangleF) |
Implicit conversion from a Rectangle to a RectangleF | |
Inequality |
Compares two rectangles for inequality
| |
Multiply(RectangleF, SizeF) |
Multiplies the specified rectangle by the Width and Height of size | |
Multiply(RectangleF, Single) |
Multiplies all X, Y, Width, Height components of the rectangle by a factor | |
Subtraction(RectangleF, PointF) |
Subtracts the offset from the specified rectangle, moving its location
| |
Subtraction(RectangleF, SizeF) |
Subtracts the offset from the specified rectangle, moving its location
|