Rectangle Methods

The Rectangle type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCeiling
Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.
Public methodContains(Point)
Determines if the specified point is contained within this Rectangle structure.
Public methodContains(Int32, Int32)
Determines if the specified point is contained within this Rectangle structure.
Public methodEquals
Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromLTRB
Creates a Rectangle structure with the specified edge locations.
Public methodGetHashCode
Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode .
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodInflate
Enlarges this Rectangle by the specified amount.
Public methodIntersect(Rectangle)
Replaces this Rectangle with the intersection of itself and the specified Rectangle.
Public methodStatic memberIntersect(Rectangle, Rectangle)
Returns a third Rectangle structure that represents the intersection of two other Rectangle structures. If there is no intersection, an empty Rectangle is returned.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodOffset
Adjusts the location of this rectangle by the specified amount.
Public methodStatic memberRound
Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.
Public methodToString (Inherited from ValueType.)
Public methodStatic memberTruncate
Converts the specified RectangleF to a Rectangle by truncating the RectangleF values.
Public methodStatic memberUnion
Gets a Rectangle structure that contains the union of two Rectangle structures.
See Also