The rect type exposes the following members.

Constructors

  NameDescription
Public methodrect
Creates a new rectangle

Methods

  NameDescription
Public methodCombine(rect)
Adds the area of a second rectangle to current rectangle
Public methodCombine(rect, rect)
Returns the combination of two rectangles
Public methodContains(point)
Checks if a point is inside the rectangle
Public methodContains(Int32, Int32)
Checks if a point is inside the rectangle
Public methodEquals (Inherited from ValueType.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberIntersect
Returns the intersection of two rectangles
Public methodIntersects
Checks to see if two rectangles intersect
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyHeight
Gets/Sets height of rectangle
Public propertyWidth
Gets/Sets width of rectangle
Public propertyX
Gets/Sets x location of rectangle
Public propertyY
Gets/Sets y location of rectangle

See Also