Represent a rectangle.

The following tables list the members exposed by the Rect2D type.

Name Description
Public constructor Rect2D Initializes a new instance of the Rect2D class.
Top
Name Description
Public property Static BadRect Represents a bad(not valid) rectangle.
Public property BottomRight Gets or sets the down-right corner of the Rect2D object as the CAD2DPoint object
Public property Static Empty Represents The Rect2D that is a null reference (Nothing in Visual Basic).
Public property Height Gets or sets a height of the Rect2D object.
Public property TopLeft Gets or sets the top-left corner of the Rect2D object as the CAD2DPoint object
Public property Width Gets or sets a width of the Rect2D object.
Top
Name Description
Public method Equals Determines whether this Rect2D instance and the specified object are equal.
Public method Expand Expands a rectangle to the specified point.
Public method GetHashCode Returns the hash code for the instance.
Public method Static IsBadRect Checks whether or not the specified rectangle is valid.
Public method Norm Normalizes this Rect2D object.
Public method Offset Adds an offset at X- and Y-axis directions to this Rect2D object.
Public method TransRectCorners Rotates this Rect2D object by a specified CADMatrix.
Top
Name Description
Operator Static Equality Checks if two Rect2D objects are equal.
Operator Static Implicit Conversion (DRect to Rect2D) Converts DRect to Rect2D
Operator Static Implicit Conversion (Rect2D to DRect) Converts Rect2D to DRect
Operator Static Implicit Conversion (Rect2D to Rectangle) Converts Rect2D to Rectangle
Operator Static Implicit Conversion (RectangleF to Rect2D) Converts RectangleF to Rect2D
Operator Static Inequality Checks if two Rect2D objects are unequal.
Top
Name Description
Public field bottom The bottom border of the Rect2D object
Public field left The left border of the Rect2D object
Public field right The right border of the Rect2D object
Public field top The top border of the Rect2D object
Top