The RectangleD type exposes the following members.

Methods

  NameDescription
Public methodContains(PointD)
Determines if the specified point is contained within this RectangleD structure.
Public methodContains(RectangleD)
Determines if the rectangular region represented by rect is entirely contained within this RectangleD structure.
Public methodContains(Double, Double)
Determines if the specified point is contained within this RectangleD structure.
Public methodEquals
Tests whether obj is a RectangleD with the same location and size of this RectangleD.
(Overrides ValueType..::..Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFromLTRB
Creates a RectangleD structure with upper-left corner and lower-right corner at the specified locations.
Public methodGetHashCode
Gets the hash code for this RectangleD structure. For information about the use of hash codes, see Object.GetHashCode.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetType (Inherited from Object.)
Public methodInflate(SizeD)
Inflates this RectangleD by the specified amount.
Public methodInflate(Double, Double)
Inflates this RectangleD structure by the specified amount.
Public methodStatic memberInflate(RectangleD, Double, Double)
Creates and returns an inflated copy of the specified RectangleD structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Public methodIntersect(RectangleD)
Replaces this RectangleD structure with the intersection of itself and the specified RectangleD structure.
Public methodStatic memberIntersect(RectangleD, RectangleD)
Returns a RectangleD structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleD is returned.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOffset(PointD)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(Double, Double)
Adjusts the location of this rectangle by the specified amount.
Public methodToString
Converts the Location and Size of this RectangleD to a human-readable string.
(Overrides ValueType..::..ToString()()()().)
Public methodStatic memberUnion
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Extension Methods

See Also