8[TypeForwardedFrom(
"System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
9[
TypeConverter(
"System.Drawing.RectangleConverter, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
141 return new Rectangle(left, top, right - left, bottom - top);
144 public override readonly
bool Equals([NotNullWhen(
true)]
object?
obj)
155 return this ==
other;
160 if (left.
X == right.
X && left.
Y == right.
Y && left.
Width == right.
Width)
162 return left.Height == right.
Height;
169 return !(left == right);
205 return rect.Y + rect.Height <=
Y +
Height;
225 Inflate(size.Width, size.Height);
250 if (num2 >= num && num4 >= num3)
252 return new Rectangle(num, num3, num2 - num, num4 - num3);
261 return Y < rect.Y + rect.
Height;
272 return new Rectangle(num, num3, num2 - num, num4 - num3);
288 return $
"{{X={X},Y={Y},Width={Width},Height={Height}}}";
static byte Min(byte val1, byte val2)
static decimal Round(decimal d)
static double Ceiling(double a)
static byte Max(byte val1, byte val2)
void Offset(int x, int y)
static readonly Rectangle Empty
static Rectangle Intersect(Rectangle a, Rectangle b)
void Intersect(Rectangle rect)
readonly bool IntersectsWith(Rectangle rect)
static Rectangle Inflate(Rectangle rect, int x, int y)
void Inflate(int width, int height)
static bool operator!=(Rectangle left, Rectangle right)
static bool operator==(Rectangle left, Rectangle right)
readonly bool Contains(int x, int y)
override readonly bool Equals([NotNullWhen(true)] object? obj)
override readonly string ToString()
static Rectangle Ceiling(RectangleF value)
Rectangle(Point location, Size size)
Rectangle(int x, int y, int width, int height)
static Rectangle Union(Rectangle a, Rectangle b)
override readonly int GetHashCode()
readonly bool Contains(Rectangle rect)
readonly bool Contains(Point pt)
readonly bool Equals(Rectangle other)
static Rectangle Round(RectangleF value)
static Rectangle FromLTRB(int left, int top, int right, int bottom)
static Rectangle Truncate(RectangleF value)