RectangleF Methods |
The RectangleF type exposes the following members.
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
|