





Method


Description








Rectangle


Constructs a rectangle given a topleft location, width and
height. 







S» Ceiling


Returns a new Rectangle copied from the supplied RectangleF.
Coordinates will be rounded to the nearest larger integer. 







Contains


Determines if the point is within the rectangle. 







Equals


Determines whether the specified object is a Rectangle, 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 Rectangle. 







Inflate


Enlarges the rectangle horizontally and vertically. 







Intersect


Changes this rectangle to represent the intersection of itself
and a supplied rectangle. 







Offset


Translates the rectangle horizontally and vertically. 







S» Round


Returns a new Rectangle copied from the supplied RectangleF.
Coordinates will be rounded to the nearest integer. 







Scale


Scales the rectangle. 







ToString


Converts the rectangle to a string representation such as
'X=10, Y=20, Width=100, Height=200'. 







S» Truncate


Returns a new Rectangle copied from the supplied RectangleF.
Coordinates will be truncated to integers. 







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. 





