Class Rectangle
- Namespace
- NetAutoGUI
- Assembly
- NetAutoGUI.dll
A rectangle
public record Rectangle : IEquatable<Rectangle>
- Inheritance
-
Rectangle
- Implements
- Inherited Members
Constructors
Rectangle(int, int, int, int)
A rectangle
public Rectangle(int X, int Y, int Width, int Height)
Parameters
Properties
Area
Area of the rectangle
public int Area { get; }
Property Value
Center
Center point of the Rectangle
public Location Center { get; }
Property Value
Height
public int Height { get; init; }
Property Value
Width
public int Width { get; init; }
Property Value
X
public int X { get; init; }
Property Value
Y
public int Y { get; init; }
Property Value
Methods
Contains(Location)
If the give location loc
is within the rectangle.
public bool Contains(Location loc)
Parameters
loc
Locationlocation
Returns
- bool
If it's within or not.
Deconstruct(out int, out int, out int, out int)
public void Deconstruct(out int x, out int y, out int width, out int height)
Parameters
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.