Rectangle Structure 
Namespace: Aspose.CAD
The Rectangle type exposes the following members.
Name  Description  

Rectangle(Point, Size) 
Initializes a new instance of the Rectangle structure with the specified location and size.
 
Rectangle(Int32, Int32, Int32, Int32) 
Initializes a new instance of the Rectangle structure with the specified location and size.

Name  Description  

Bottom  
Empty  
Height 
Gets or sets the height of this Rectangle structure.
 
IsEmpty 
Gets a value indicating whether all numeric properties of this Rectangle have values of zero.
 
Left 
Gets or sets the xcoordinate of the left edge of this Rectangle structure.
 
Location 
Gets or sets the coordinates of the upperleft corner of this Rectangle structure.
 
Right  
Size 
Gets or sets the size of this Rectangle.
 
Top 
Gets or sets the ycoordinate of the top edge of this Rectangle structure.
 
Width 
Gets or sets the width of this Rectangle structure.
 
X 
Gets or sets the xcoordinate of the upperleft corner of this Rectangle structure.
 
Y 
Gets or sets the ycoordinate of the upperleft corner of this Rectangle structure.

Name  Description  

Ceiling 
Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.
 
Contains(Point) 
Determines if the specified point is contained within this Rectangle structure.
 
Contains(Rectangle) 
Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.
 
Contains(Int32, Int32) 
Determines if the specified point is contained within this Rectangle structure.
 
Equals 
Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.
(Overrides ValueTypeEquals(Object).)  
FromLeftTopRightBottom 
Creates a Rectangle structure with the specified edge locations.
 
FromPoints 
Creates a new Rectangle from two points specified. Two verticales of the created Rectangle will be equal to the passed point1 and point2. These would be typically the opposite vertices.
 
GetHashCode 
Returns the hash code for this Rectangle structure.
(Overrides ValueTypeGetHashCode.)  
GetType  Gets the type of the current instance. (Inherited from Object.)  
Inflate(Size) 
Inflates this Rectangle by the specified amount.
 
Inflate(Int32, Int32) 
Inflates this Rectangle by the specified amount.
 
Inflate(Rectangle, Int32, Int32) 
Creates and returns an inflated copy of the specified Rectangle structure. The copy is inflated by the specified amount. The original Rectangle structure remains unmodified.
 
Intersect(Rectangle) 
Replaces this Rectangle with the intersection of itself and the specified Rectangle.
 
Intersect(Rectangle, Rectangle) 
Returns a third Rectangle structure that represents the intersection of two other Rectangle structures. If there is no intersection, an empty Rectangle is returned.
 
IntersectsWith 
Determines if this rectangle intersects with rect.
 
Normalize 
Normalizes the rectangle by making it's width and height positive, left less than right and top less than bottom.
 
Offset(Point) 
Adjusts the location of this rectangle by the specified amount.
 
Offset(Int32, Int32) 
Adjusts the location of this rectangle by the specified amount.
 
Round 
Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.
 
ToString 
Converts the attributes of this Rectangle to a humanreadable string.
(Overrides ValueTypeToString.)  
Truncate  
Union 
Gets a Rectangle structure that contains the union of two Rectangle structures.

Name  Description  

Equality 
Tests whether two Rectangle structures have equal location and size.
 
Inequality 
Tests whether two Rectangle structures differ in location or size.
