public Point(int dw) { throw null; }
public Point(int x, int y) { throw null; }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
- public int X { get { throw null; } set { } }
- public int Y { get { throw null; } set { } }
+ public readonly bool IsEmpty { get { throw null; } }
+ public int X { readonly get { throw null; } set { } }
+ public int Y { readonly get { throw null; } set { } }
public static System.Drawing.Point Add(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.Point Ceiling(System.Drawing.PointF value) { throw null; }
- public bool Equals(System.Drawing.Point other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
+ public readonly bool Equals(System.Drawing.Point other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public void Offset(System.Drawing.Point p) { }
public void Offset(int dx, int dy) { }
public static System.Drawing.Point operator +(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.Point operator -(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.Point Round(System.Drawing.PointF value) { throw null; }
public static System.Drawing.Point Subtract(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
- public override string ToString() { throw null; }
+ public override readonly string ToString() { throw null; }
public static System.Drawing.Point Truncate(System.Drawing.PointF value) { throw null; }
}
public partial struct PointF : System.IEquatable<System.Drawing.PointF>
public static readonly System.Drawing.PointF Empty;
public PointF(float x, float y) { throw null; }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
- public float X { get { throw null; } set { } }
- public float Y { get { throw null; } set { } }
+ public readonly bool IsEmpty { get { throw null; } }
+ public float X { readonly get { throw null; } set { } }
+ public float Y { readonly get { throw null; } set { } }
public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
- public bool Equals(System.Drawing.PointF other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
+ public readonly bool Equals(System.Drawing.PointF other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public static System.Drawing.PointF operator +(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.PointF operator +(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
public static bool operator ==(System.Drawing.PointF left, System.Drawing.PointF right) { throw null; }
public static System.Drawing.PointF operator -(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
- public override string ToString() { throw null; }
+ public override readonly string ToString() { throw null; }
}
public partial struct Rectangle : System.IEquatable<System.Drawing.Rectangle>
{
public Rectangle(System.Drawing.Point location, System.Drawing.Size size) { throw null; }
public Rectangle(int x, int y, int width, int height) { throw null; }
[System.ComponentModel.BrowsableAttribute(false)]
- public int Bottom { get { throw null; } }
- public int Height { get { throw null; } set { } }
+ public readonly int Bottom { get { throw null; } }
+ public int Height { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
+ public readonly bool IsEmpty { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public int Left { get { throw null; } }
+ public readonly int Left { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public System.Drawing.Point Location { get { throw null; } set { } }
+ public System.Drawing.Point Location { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public int Right { get { throw null; } }
+ public readonly int Right { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public System.Drawing.Size Size { get { throw null; } set { } }
+ public System.Drawing.Size Size { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public int Top { get { throw null; } }
- public int Width { get { throw null; } set { } }
- public int X { get { throw null; } set { } }
- public int Y { get { throw null; } set { } }
+ public readonly int Top { get { throw null; } }
+ public int Width { readonly get { throw null; } set { } }
+ public int X { readonly get { throw null; } set { } }
+ public int Y { readonly get { throw null; } set { } }
public static System.Drawing.Rectangle Ceiling(System.Drawing.RectangleF value) { throw null; }
- public bool Contains(System.Drawing.Point pt) { throw null; }
- public bool Contains(System.Drawing.Rectangle rect) { throw null; }
- public bool Contains(int x, int y) { throw null; }
- public bool Equals(System.Drawing.Rectangle other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
+ public readonly bool Contains(System.Drawing.Point pt) { throw null; }
+ public readonly bool Contains(System.Drawing.Rectangle rect) { throw null; }
+ public readonly bool Contains(int x, int y) { throw null; }
+ public readonly bool Equals(System.Drawing.Rectangle other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
public static System.Drawing.Rectangle FromLTRB(int left, int top, int right, int bottom) { throw null; }
- public override int GetHashCode() { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public static System.Drawing.Rectangle Inflate(System.Drawing.Rectangle rect, int x, int y) { throw null; }
public void Inflate(System.Drawing.Size size) { }
public void Inflate(int width, int height) { }
public static bool operator ==(System.Drawing.Rectangle left, System.Drawing.Rectangle right) { throw null; }
public static bool operator !=(System.Drawing.Rectangle left, System.Drawing.Rectangle right) { throw null; }
public static System.Drawing.Rectangle Round(System.Drawing.RectangleF value) { throw null; }
- public override string ToString() { throw null; }
+ public override readonly string ToString() { throw null; }
public static System.Drawing.Rectangle Truncate(System.Drawing.RectangleF value) { throw null; }
public static System.Drawing.Rectangle Union(System.Drawing.Rectangle a, System.Drawing.Rectangle b) { throw null; }
}
public RectangleF(System.Drawing.PointF location, System.Drawing.SizeF size) { throw null; }
public RectangleF(float x, float y, float width, float height) { throw null; }
[System.ComponentModel.BrowsableAttribute(false)]
- public float Bottom { get { throw null; } }
- public float Height { get { throw null; } set { } }
+ public readonly float Bottom { get { throw null; } }
+ public float Height { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
+ public readonly bool IsEmpty { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public float Left { get { throw null; } }
+ public readonly float Left { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public System.Drawing.PointF Location { get { throw null; } set { } }
+ public System.Drawing.PointF Location { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public float Right { get { throw null; } }
+ public readonly float Right { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
- public System.Drawing.SizeF Size { get { throw null; } set { } }
+ public System.Drawing.SizeF Size { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public float Top { get { throw null; } }
- public float Width { get { throw null; } set { } }
- public float X { get { throw null; } set { } }
- public float Y { get { throw null; } set { } }
- public bool Contains(System.Drawing.PointF pt) { throw null; }
- public bool Contains(System.Drawing.RectangleF rect) { throw null; }
- public bool Contains(float x, float y) { throw null; }
- public bool Equals(System.Drawing.RectangleF other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
+ public readonly float Top { get { throw null; } }
+ public float Width { readonly get { throw null; } set { } }
+ public float X { readonly get { throw null; } set { } }
+ public float Y { readonly get { throw null; } set { } }
+ public readonly bool Contains(System.Drawing.PointF pt) { throw null; }
+ public readonly bool Contains(System.Drawing.RectangleF rect) { throw null; }
+ public readonly bool Contains(float x, float y) { throw null; }
+ public readonly bool Equals(System.Drawing.RectangleF other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
public static System.Drawing.RectangleF FromLTRB(float left, float top, float right, float bottom) { throw null; }
- public override int GetHashCode() { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public static System.Drawing.RectangleF Inflate(System.Drawing.RectangleF rect, float x, float y) { throw null; }
public void Inflate(System.Drawing.SizeF size) { }
public void Inflate(float x, float y) { }
public void Intersect(System.Drawing.RectangleF rect) { }
public static System.Drawing.RectangleF Intersect(System.Drawing.RectangleF a, System.Drawing.RectangleF b) { throw null; }
- public bool IntersectsWith(System.Drawing.RectangleF rect) { throw null; }
+ public readonly bool IntersectsWith(System.Drawing.RectangleF rect) { throw null; }
public void Offset(System.Drawing.PointF pos) { }
public void Offset(float x, float y) { }
public static bool operator ==(System.Drawing.RectangleF left, System.Drawing.RectangleF right) { throw null; }
public static implicit operator System.Drawing.RectangleF (System.Drawing.Rectangle r) { throw null; }
public static bool operator !=(System.Drawing.RectangleF left, System.Drawing.RectangleF right) { throw null; }
- public override string ToString() { throw null; }
+ public override readonly string ToString() { throw null; }
public static System.Drawing.RectangleF Union(System.Drawing.RectangleF a, System.Drawing.RectangleF b) { throw null; }
}
public partial struct Size : System.IEquatable<System.Drawing.Size>
public static readonly System.Drawing.Size Empty;
public Size(System.Drawing.Point pt) { throw null; }
public Size(int width, int height) { throw null; }
- public int Height { get { throw null; } set { } }
+ public int Height { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
- public int Width { get { throw null; } set { } }
+ public readonly bool IsEmpty { get { throw null; } }
+ public int Width { readonly get { throw null; } set { } }
public static System.Drawing.Size Add(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
public static System.Drawing.Size Ceiling(System.Drawing.SizeF value) { throw null; }
- public bool Equals(System.Drawing.Size other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
+ public readonly bool Equals(System.Drawing.Size other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public static System.Drawing.Size operator +(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
public static System.Drawing.Size operator /(System.Drawing.Size left, int right) { throw null; }
public static System.Drawing.SizeF operator /(System.Drawing.Size left, float right) { throw null; }
public static System.Drawing.Size operator -(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
public static System.Drawing.Size Round(System.Drawing.SizeF value) { throw null; }
public static System.Drawing.Size Subtract(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
- public override string ToString() { throw null; }
+ public override readonly string ToString() { throw null; }
public static System.Drawing.Size Truncate(System.Drawing.SizeF value) { throw null; }
}
public partial struct SizeF : System.IEquatable<System.Drawing.SizeF>
public SizeF(System.Drawing.PointF pt) { throw null; }
public SizeF(System.Drawing.SizeF size) { throw null; }
public SizeF(float width, float height) { throw null; }
- public float Height { get { throw null; } set { } }
+ public float Height { readonly get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
- public bool IsEmpty { get { throw null; } }
- public float Width { get { throw null; } set { } }
+ public readonly bool IsEmpty { get { throw null; } }
+ public float Width { readonly get { throw null; } set { } }
public static System.Drawing.SizeF Add(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
- public bool Equals(System.Drawing.SizeF other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
+ public readonly bool Equals(System.Drawing.SizeF other) { throw null; }
+ public override readonly bool Equals(object? obj) { throw null; }
+ public override readonly int GetHashCode() { throw null; }
public static System.Drawing.SizeF operator +(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
public static System.Drawing.SizeF operator /(System.Drawing.SizeF left, float right) { throw null; }
public static bool operator ==(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
public static System.Drawing.SizeF operator *(float left, System.Drawing.SizeF right) { throw null; }
public static System.Drawing.SizeF operator -(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
public static System.Drawing.SizeF Subtract(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
- public System.Drawing.PointF ToPointF() { throw null; }
- public System.Drawing.Size ToSize() { throw null; }
- public override string ToString() { throw null; }
+ public readonly System.Drawing.PointF ToPointF() { throw null; }
+ public readonly System.Drawing.Size ToSize() { throw null; }
+ public override readonly string ToString() { throw null; }
}
public static partial class SystemColors
{
[Browsable(false)]
public Point Location
{
- get => new Point(X, Y);
+ readonly get => new Point(X, Y);
set
{
X = value.X;
[Browsable(false)]
public Size Size
{
- get => new Size(Width, Height);
+ readonly get => new Size(Width, Height);
set
{
Width = value.Width;
/// </summary>
public int X
{
- get => x;
+ readonly get => x;
set => x = value;
}
/// </summary>
public int Y
{
- get => y;
+ readonly get => y;
set => y = value;
}
/// </summary>
public int Width
{
- get => width;
+ readonly get => width;
set => width = value;
}
/// </summary>
public int Height
{
- get => height;
+ readonly get => height;
set => height = value;
}
/// <see cref='System.Drawing.Rectangle'/> .
/// </summary>
[Browsable(false)]
- public int Left => X;
+ public readonly int Left => X;
/// <summary>
/// Gets the y-coordinate of the upper-left corner of the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/>.
/// </summary>
[Browsable(false)]
- public int Top => Y;
+ public readonly int Top => Y;
/// <summary>
/// Gets the x-coordinate of the lower-right corner of the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/>.
/// </summary>
[Browsable(false)]
- public int Right => unchecked(X + Width);
+ public readonly int Right => unchecked(X + Width);
/// <summary>
/// Gets the y-coordinate of the lower-right corner of the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/>.
/// </summary>
[Browsable(false)]
- public int Bottom => unchecked(Y + Height);
+ public readonly int Bottom => unchecked(Y + Height);
/// <summary>
/// Tests whether this <see cref='System.Drawing.Rectangle'/> has a <see cref='System.Drawing.Rectangle.Width'/>
/// or a <see cref='System.Drawing.Rectangle.Height'/> of 0.
/// </summary>
[Browsable(false)]
- public bool IsEmpty => height == 0 && width == 0 && x == 0 && y == 0;
+ public readonly bool IsEmpty => height == 0 && width == 0 && x == 0 && y == 0;
/// <summary>
/// Tests whether <paramref name="obj"/> is a <see cref='System.Drawing.Rectangle'/> with the same location
/// and size of this Rectangle.
/// </summary>
- public override bool Equals(object? obj) => obj is Rectangle && Equals((Rectangle)obj);
+ public override readonly bool Equals(object? obj) => obj is Rectangle && Equals((Rectangle)obj);
- public bool Equals(Rectangle other) => this == other;
+ public readonly bool Equals(Rectangle other) => this == other;
/// <summary>
/// Tests whether two <see cref='System.Drawing.Rectangle'/> objects have equal location and size.
/// Determines if the specified point is contained within the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(int x, int y) => X <= x && x < X + Width && Y <= y && y < Y + Height;
+ public readonly bool Contains(int x, int y) => X <= x && x < X + Width && Y <= y && y < Y + Height;
/// <summary>
/// Determines if the specified point is contained within the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(Point pt) => Contains(pt.X, pt.Y);
+ public readonly bool Contains(Point pt) => Contains(pt.X, pt.Y);
/// <summary>
/// Determines if the rectangular region represented by <paramref name="rect"/> is entirely contained within the
/// rectangular region represented by this <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(Rectangle rect) =>
+ public readonly bool Contains(Rectangle rect) =>
(X <= rect.X) && (rect.X + rect.Width <= X + Width) &&
(Y <= rect.Y) && (rect.Y + rect.Height <= Y + Height);
/// <summary>
/// Determines if this rectangle intersects with rect.
/// </summary>
- public bool IntersectsWith(Rectangle rect) =>
+ public readonly bool IntersectsWith(Rectangle rect) =>
(rect.X < X + Width) && (X < rect.X + rect.Width) &&
(rect.Y < Y + Height) && (Y < rect.Y + rect.Height);
/// <summary>
/// Converts the attributes of this <see cref='System.Drawing.Rectangle'/> to a human readable string.
/// </summary>
- public override string ToString() =>
+ public override readonly string ToString() =>
"{X=" + X.ToString() + ",Y=" + Y.ToString() +
",Width=" + Width.ToString() + ",Height=" + Height.ToString() + "}";
}
[Browsable(false)]
public PointF Location
{
- get => new PointF(X, Y);
+ readonly get => new PointF(X, Y);
set
{
X = value.X;
[Browsable(false)]
public SizeF Size
{
- get => new SizeF(Width, Height);
+ readonly get => new SizeF(Width, Height);
set
{
Width = value.Width;
/// </summary>
public float X
{
- get => x;
+ readonly get => x;
set => x = value;
}
/// </summary>
public float Y
{
- get => y;
+ readonly get => y;
set => y = value;
}
/// </summary>
public float Width
{
- get => width;
+ readonly get => width;
set => width = value;
}
/// </summary>
public float Height
{
- get => height;
+ readonly get => height;
set => height = value;
}
/// <see cref='System.Drawing.RectangleF'/> .
/// </summary>
[Browsable(false)]
- public float Left => X;
+ public readonly float Left => X;
/// <summary>
/// Gets the y-coordinate of the upper-left corner of the rectangular region defined by this
/// <see cref='System.Drawing.RectangleF'/>.
/// </summary>
[Browsable(false)]
- public float Top => Y;
+ public readonly float Top => Y;
/// <summary>
/// Gets the x-coordinate of the lower-right corner of the rectangular region defined by this
/// <see cref='System.Drawing.RectangleF'/>.
/// </summary>
[Browsable(false)]
- public float Right => X + Width;
+ public readonly float Right => X + Width;
/// <summary>
/// Gets the y-coordinate of the lower-right corner of the rectangular region defined by this
/// <see cref='System.Drawing.RectangleF'/>.
/// </summary>
[Browsable(false)]
- public float Bottom => Y + Height;
+ public readonly float Bottom => Y + Height;
/// <summary>
/// Tests whether this <see cref='System.Drawing.RectangleF'/> has a <see cref='System.Drawing.RectangleF.Width'/> or a <see cref='System.Drawing.RectangleF.Height'/> of 0.
/// </summary>
[Browsable(false)]
- public bool IsEmpty => (Width <= 0) || (Height <= 0);
+ public readonly bool IsEmpty => (Width <= 0) || (Height <= 0);
/// <summary>
/// Tests whether <paramref name="obj"/> is a <see cref='System.Drawing.RectangleF'/> with the same location and
/// size of this <see cref='System.Drawing.RectangleF'/>.
/// </summary>
- public override bool Equals(object? obj) => obj is RectangleF && Equals((RectangleF)obj);
+ public override readonly bool Equals(object? obj) => obj is RectangleF && Equals((RectangleF)obj);
- public bool Equals(RectangleF other) => this == other;
+ public readonly bool Equals(RectangleF other) => this == other;
/// <summary>
/// Tests whether two <see cref='System.Drawing.RectangleF'/> objects have equal location and size.
/// Determines if the specified point is contained within the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(float x, float y) => X <= x && x < X + Width && Y <= y && y < Y + Height;
+ public readonly bool Contains(float x, float y) => X <= x && x < X + Width && Y <= y && y < Y + Height;
/// <summary>
/// Determines if the specified point is contained within the rectangular region defined by this
/// <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(PointF pt) => Contains(pt.X, pt.Y);
+ public readonly bool Contains(PointF pt) => Contains(pt.X, pt.Y);
/// <summary>
/// Determines if the rectangular region represented by <paramref name="rect"/> is entirely contained within
/// the rectangular region represented by this <see cref='System.Drawing.Rectangle'/> .
/// </summary>
- public bool Contains(RectangleF rect) =>
+ public readonly bool Contains(RectangleF rect) =>
(X <= rect.X) && (rect.X + rect.Width <= X + Width) && (Y <= rect.Y) && (rect.Y + rect.Height <= Y + Height);
/// <summary>
/// Gets the hash code for this <see cref='System.Drawing.RectangleF'/>.
/// </summary>
- public override int GetHashCode() => HashCode.Combine(X, Y, Width, Height);
+ public override readonly int GetHashCode() => HashCode.Combine(X, Y, Width, Height);
/// <summary>
/// Inflates this <see cref='System.Drawing.Rectangle'/> by the specified amount.
/// Converts the <see cref='System.Drawing.RectangleF.Location'/> and <see cref='System.Drawing.RectangleF.Size'/>
/// of this <see cref='System.Drawing.RectangleF'/> to a human-readable string.
/// </summary>
- public override string ToString() =>
+ public override readonly string ToString() =>
"{X=" + X.ToString() + ",Y=" + Y.ToString() +
",Width=" + Width.ToString() + ",Height=" + Height.ToString() + "}";
}