RectangleF class
RectangleF class
Stores a set of four floating-point numbers that represent the location and size of a rectangle.
The RectangleF type exposes the following members:
Constructors
Constructor | Description |
---|
init | Initializes a new instance of the RectangleF structure with the specified location and size. |
init | Initializes a new instance of the RectangleF structure with the specified location and size. |
init | Constructs a new instance of RectangleF |
Properties
Methods
Method | Description |
---|
inflate | Creates and returns an inflated copy of the specified RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified. |
inflate | Inflates this RectangleF structure by the specified amount. |
inflate | Inflates this RectangleF by the specified amount. |
intersect | Returns a RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleF is returned. |
intersect | Replaces this RectangleF structure with the intersection of itself and the specified RectangleF structure. |
contains | Determines if the specified point is contained within this RectangleF structure. |
contains | Determines if the specified point is contained within this RectangleF structure. |
contains | Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure. |
offset | Adjusts the location of this rectangle by the specified amount. |
offset | Adjusts the location of this rectangle by the specified amount. |
from_points | Creates a new Rectangle from two points specified. Two verticles of the created Rectangle will be equal to the passed point1 and point2 . These would be typically the opposite vertices. |
union | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
from_left_top_right_bottom | Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations. |
normalize | Normalizes the rectangle by making it’s width and height positive, left less than right and top less than bottom. |
intersects_with | Determines if this rectangle intersects with rect . |
See Also