Struct Rect

Rect structure

A class to represent the rectangle

public struct Rect

Constructors

NameDescription
Rect(int, int, int, int)Constructor of class Rect

Properties

NameDescription
Bottom { get; }Gets the bottom of the rectangle
Height { get; set; }Gets or sets the height of the size
Left { get; }Gets the left of the rectangle
Right { get; }Gets the right of the rectangle
Top { get; }Gets the top of the rectangle
Width { get; set; }Gets or sets the width of the size
X { get; set; }Gets or sets the x of the size
Y { get; set; }Gets or sets the y of the size

Methods

NameDescription
Contains(int, int)Return true if the given point is inside the rectangle.

See Also