Rectangle

Rectangle structure

public struct Rectangle

Constructors

Name Description
Rectangle(Point, Size)
Rectangle(int, int, int, int)

Properties

Name Description
static Empty { get; }
Bottom { get; set; }
Height { get; set; }
IsEmpty { get; }
Left { get; set; }
Location { get; set; }
Right { get; set; }
Size { get; set; }
Top { get; set; }
Width { get; set; }
X { get; set; }
Y { get; set; }

Methods

Name Description
static Ceiling(RectangleF)
static FromLeftTopRightBottom(int, int, int, int)
static FromPoints(Point, Point)
static Inflate(Rectangle, int, int)
static Intersect(Rectangle, Rectangle)
static Round(RectangleF)
static Truncate(RectangleF)
static Union(Rectangle, Rectangle)
Contains(Point)
Contains(Rectangle)
Contains(int, int)
override Equals(object)
override GetHashCode()
Inflate(Size)
Inflate(int, int)
Intersect(Rectangle)
IntersectsWith(Rectangle)
Normalize()
Offset(Point)
Offset(int, int)
override ToString()
operator ==
operator !=

See Also