Rectangle Structure 
Namespace: System.Drawing
public struct Rectangle
The Rectangle type exposes the following members.
Name  Description  

Rectangle(Point, Size) 
Initializes a new instance of the Rectangle struct 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 
Gets the ycoordinate that is the sum of the Y and Height property values of this Rectangle structure.
 
Height 
Gets or sets the height of this Rectangle structure.
 
IsEmpty 
Gets a value indicating whether all numeric properties of this [!:T;Rectangle] have values of zero.
 
Left 
Gets 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 
Gets the xcoordinate that is the sum of X and Width property values of this Rectangle structure.
 
Size 
Gets or sets the size of this Rectangle.
 
Top 
Gets 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(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).)  
FromLTRB 
Creates a Rectangle structure with the specified edge locations.
 
GetHashCode 
Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode .
(Overrides ValueTypeGetHashCode.)  
GetType  (Inherited from Object.)  
Inflate 
Enlarges this Rectangle by the specified amount.
 
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.
 
Offset 
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  (Inherited from ValueType.)  
Truncate 
Converts the specified RectangleF to a Rectangle by truncating the RectangleF values.
 
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.

Name  Description  

Empty 
Represents a Rectangle structure with its properties left uninitialized.
