The RectangleD type exposes the following members.

Constructors

  Name Description
Public method RectangleD(PointD, SizeD)
Initializes a new instance of the RectangleD structure.
Public method RectangleD(Double, Double, Double, Double)
Initializes a new instance of the RectangleD structure.

Methods

  Name Description
Public method Contains(PointD)
Tests whether the specified point is contained within the current RectangleD.
Public method Contains(RectangleD)
Tests whether the specified rectangle is entirely contained within the current RectangleD.
Public method Contains(Double, Double)
Tests whether a point specified by its coordinates is contained within the current RectangleD.
Public method Equals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public method Static member FromLTRB
Creates a RectangleD structure based on the coordinates of its top-left and bottom-right corners.
Public method GetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public method Inflate(SizeD)
Inflates the current RectangleD by a specified SizeD.
Public method Inflate(Double, Double)
Inflates the current RectangleD by specified horizontal and vertical amounts.
Public method Static member Inflate(RectangleD, Double, Double)
Creates a new RectangleD structure from another RectangleD, inflated by the specified amounts vertically and horizontally.
Public method Inflate(Double, Double, Double, Double)
Inflates the current RectangleD by the specified amounts on four sides.
Public method Intersect(RectangleD)
Replaces the current RectangleD structure with the intersection of itself and another RectangleD.
Public method Static member Intersect(RectangleD, RectangleD)
Creates a new RectangleD structure representing the intersection of two RectangleD structures. (The intersection may be empty, in which case Empty is returned.)
Public method IntersectsWith
Tests whether the current RectangleD intersects with another.
Public method Offset(PointD)
Offsets the location of the current RectangleD by horizontal and vertical amounts specified by a PointD.
Public method Offset(Double, Double)
Offsets the location of the current RectangleD by specified horizontal and vertical amounts.
Public method Static member Parse
Converts a string to a RectangleD structure.
Public method ToRectangle
Converts the current RectangleD to a Rectangle.
Public method ToRectangleF
Converts the current RectangleD to a RectangleF.
Public method ToString
Converts the current RectangleD structure to a human-readable string representing it.
(Overrides ValueType..::..ToString()()()().)
Public method Static member Union
Creates a new RectangleD structure representing the smallest possible rectangle containing the two specified rectangles.

Properties

  Name Description
Public property Bottom
Gets the Y coordinate of the bottom edge of the current RectangleD structure.
Public property BottomLeft
Gets the coordinates of the bottom left corner of the current RectangleD structure.
Public property BottomRight
Gets the coordinates of the bottom right corner of the current RectangleD structure.
Public property Static member Empty
Represents an empty instance of the RectangleD structure.
Public property Height
Gets or sets the height of the current RectangleD structure.
Public property IsEmpty
Gets a value indicating whether the Width and Height properties of the current RectangleD structure have zero values.
Public property Left
Gets the X coordinate of the left edge of the current RectangleD structure.
Public property Location
Gets or sets the coordinates of the top left corner of the current RectangleD structure.
Public property Right
Gets the X coordinate of the right edge of the current RectangleD structure.
Public property Size
Gets or sets the size of the current RectangleD structure.
Public property Top
Gets the Y coordinate of the top edge of the current RectangleD structure.
Public property TopLeft
Gets the coordinates of the top left corner of the current RectangleD structure.
Public property TopRight
Gets the coordinates of the top right corner of the current RectangleD structure.
Public property Width
Gets or sets the width of the current RectangleD structure.
Public property X
Gets or sets the X coordinate of the top left corner of the current RectangleD structure.
Public property Y
Gets or sets the Y coordinate of the top left corner of the current RectangleD structure.

See Also