Struct Rect
Rect structure
A class to represent the rectangle
Constructors
Name | Description |
---|
Rect(int, int, int, int) | Constructor of class Rect |
Properties
Name | Description |
---|
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
Name | Description |
---|
Contains(int, int) | Return true if the given point is inside the rectangle. |
See Also