Table of Contents

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

X int
Y int
Width int
Height int

Properties

Area

Area of the rectangle

public int Area { get; }

Property Value

int

Center

Center point of the Rectangle

public Location Center { get; }

Property Value

Location

Height

public int Height { get; init; }

Property Value

int

Width

public int Width { get; init; }

Property Value

int

X

public int X { get; init; }

Property Value

int

Y

public int Y { get; init; }

Property Value

int

Methods

Contains(Location)

If the give location loc is within the rectangle.

public bool Contains(Location loc)

Parameters

loc Location

location

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

x int
y int
width int
height int

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.