The RectangleD type exposes the following members.

Constructors

  NameDescription
Public methodRectangleD(PointD, SizeD)
Initializes a new instance of the RectangleD class with the specified location and size.
Public methodRectangleD(Double, Double, Double, Double)
Initializes a new instance of the RectangleD class with the specified location and size.

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.

Operators

  NameDescription
Public operatorStatic memberEquality
Tests whether two RectangleD structures have equal location and size.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Rectangle to RectangleD)
Converts the specified Rectangle structure to a RectangleD structure.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(RectangleF to RectangleD)
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(RectangleD to RectangleF)
Public operatorStatic memberInequality
Tests whether two RectangleD structures differ in location or size.

Extension Methods

Fields

  NameDescription
Public fieldStatic memberEmpty
Represents an instance of the RectangleD class with its members uninitialized.

Properties

  NameDescription
Public propertyBottom
Gets the y-coordinate that is the sum of Y()()()() and Height()()()() of this RectangleD structure.
Public propertyHeight
Gets or sets the height of this RectangleD structure.
Public propertyIsEmpty
Tests whether the Width()()()() or Height()()()() property of this RectangleD has a value of zero.
Public propertyLeft
Gets the x-coordinate of the left edge of this RectangleD structure.
Public propertyLocation
Gets or sets the coordinates of the upper-left corner of this RectangleD structure.
Public propertyRight
Gets the x-coordinate that is the sum of X()()()() and Width()()()() of this RectangleD structure.
Public propertySize
Gets or sets the size of this RectangleD.
Public propertyTop
Gets the y-coordinate of the top edge of this RectangleD structure.
Public propertyWidth
Gets or sets the width of this RectangleD structure.
Public propertyX
Gets or sets the x-coordinate of the upper-left corner of this RectangleD structure.
Public propertyY
Gets or sets the y-coordinate of the upper-left corner of this RectangleD structure.

See Also