|
|
|
|
|
|
Method
|
|
Description
|
|
|
|
|
|
|
|
RectangleF
|
|
Constructs a rectangle given a top-left location, width and
height. |
|
|
|
|
|
|
|
Contains
|
|
Determines if the point is within the rectangle. |
|
|
|
|
|
|
|
Equals
|
|
Determines whether the specified object is a RectangleF, value
identical to this one. |
|
|
|
|
|
|
|
S» FitIn
|
|
Fits this rectangle inside a containing rectangle, preserving
aspect ratio.
The size is determined by the fit type. You can choose to map
the width of this rectangle into the width of the destination, or
the height into the height of the destination, or both. The
rectangle will be centered inside the containing
rectangle. |
|
|
|
|
|
|
|
S» FromLTRB
|
|
Creates a rectangle using the boundaries of the object. |
|
|
|
|
|
|
|
S» FromPoints
|
|
Returns the smallest rectangle which contains all the supplied
points. If no points are supplied an exception will be raised. |
|
|
|
|
|
|
|
GetHashCode
|
|
Obtains a hash code for the RectangleF. |
|
|
|
|
|
|
|
Inflate
|
|
Enlarges the rectangle horizontally and vertically leaving the
center of the rectangle fixed. |
|
|
|
|
|
|
|
Intersect
|
|
Changes this rectangle to represent the intersection of itself
and a supplied rectangle. |
|
|
|
|
|
|
|
Offset
|
|
Translates the rectangle horizontally and vertically. |
|
|
|
|
|
|
|
Scale
|
|
Scales the rectangle. |
|
|
|
|
|
|
|
ToString
|
|
Converts the rectangle to a string representation such as
'X=10, Y=20, W=100, H=200'. |
|
|
|
|
|
|
|
S» Tween
|
|
Find a rectangle between two other rectangles using linear
interpolation. |
|
|
|
|
|
|
|
S» Union
|
|
Changes this rectangle to represent the union of itself and a
supplied rectangle. The union is the smallest rectangle that
contains both rectangles. |
|
|
|
|
|
|