Click or drag to resize

RectangleF Methods

The RectangleF type exposes the following members.

Methods
  NameDescription
Public methodContains(PointF)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodContains(PointF)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodContains(RectangleF)
Determines if the rectangular region represented by rect is entirely contained within this System.Drawing.RectangleF structure.
Public methodContains(Single, Single)
Determines if the specified point is contained within this System.Drawing.RectangleF structure.
Public methodEquals
Tests whether obj is a System.Drawing.RectangleF with the same location and size of this System.Drawing.RectangleF.
(Overrides ObjectEquals(Object).)
Public methodStatic memberFromLTRB
Creates a System.Drawing.RectangleF structure with upper-left corner and lower-right corner at the specified locations.
Public methodGetHashCode
Gets the hash code for this System.Drawing.RectangleF structure. For information about the use of hash codes, see Object.GetHashCode.
(Overrides ObjectGetHashCode.)
Public methodInflate(SizeF)
Inflates this System.Drawing.RectangleF by the specified amount.
Public methodInflate(SizeF)
Inflates this System.Drawing.RectangleF by the specified amount.
Public methodInflate(Single, Single)
Inflates this System.Drawing.RectangleF structure by the specified amount.
Public methodStatic memberInflate(RectangleF, Single, Single)
Creates and returns an inflated copy of the specified System.Drawing.RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Public methodIntersect(RectangleF)
Replaces this System.Drawing.RectangleF structure with the intersection of itself and the specified System.Drawing.RectangleF structure.
Public methodStatic memberIntersect(RectangleF, RectangleF)
Returns a System.Drawing.RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty System.Drawing.RectangleF is returned.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodOffset(PointF)
Adjusts the location of this rectangle by the specified amount.
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 Location and System.Drawing.Size of this System.Drawing.RectangleF to a human-readable string.
(Overrides ObjectToString.)
Public methodStatic memberUnion
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
Top
See Also