RectangleF Methods

The RectangleF type exposes the following members.

Methods
  NameDescription
Public methodContains(PointF)
Determines if the specified point is contained within this RectangleF structure.
Public methodContains(RectangleF)
Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.
Public methodContains(Single, Single)
Determines if the specified point is contained within this RectangleF structure.
Public methodEquals
Tests whether obj is a RectangleF with the same location and size of this RectangleF.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromLeftTopRightBottom
Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations.
Public methodStatic memberFromPoints
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.
Public methodGetHashCode
Gets the hash code for this RectangleF structure.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodInflate(SizeF)
Inflates this RectangleF by the specified amount.
Public methodInflate(Single, Single)
Inflates this RectangleF structure by the specified amount.
Public methodStatic memberInflate(RectangleF, Single, Single)
Creates and returns an inflated copy of the specified RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Public methodIntersect(RectangleF)
Replaces this RectangleF structure with the intersection of itself and the specified RectangleF structure.
Public methodStatic memberIntersect(RectangleF, RectangleF)
Returns a RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleF is returned.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodNormalize
Normalizes the rectangle by making it's width and height positive, left less than right and top less than bottom.
Public methodOffset(PointF)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(Single, Single)
Adjusts the location of this rectangle by the specified amount.
Public methodToString
Converts the attributes of this RectangleF to a human-readable string.
(Overrides ValueTypeToString.)
Public methodStatic memberUnion
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
See Also