Struct Rectangle
Assembly: HP.LFT.Common.Standard.dll
Syntax
Constructors
Rectangle(int, int, int, int)
Declaration
public Rectangle(int x, int y, int width, int height)
Parameters
Fields
Empty
Declaration
public static readonly Rectangle Empty
Field Value
Properties
Bottom
Declaration
public int Bottom { get; }
Property Value
Height
Declaration
public int Height { get; set; }
Property Value
Left
Declaration
Property Value
Right
Declaration
public int Right { get; }
Property Value
Top
Declaration
Property Value
Width
Declaration
public int Width { get; set; }
Property Value
X
Declaration
public int X { get; set; }
Property Value
Y
Declaration
public int Y { get; set; }
Property Value
Methods
Contains(Rectangle)
Declaration
public bool Contains(Rectangle rect)
Parameters
Returns
Contains(int, int)
Declaration
public bool Contains(int x, int y)
Parameters
| Type |
Name |
Description |
| int |
x |
|
| int |
y |
|
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
FromLTRB(int, int, int, int)
Declaration
public static Rectangle FromLTRB(int left, int top, int right, int bottom)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Inflate(int, int)
Declaration
public void Inflate(int width, int height)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
Intersect(Rectangle)
Declaration
public Rectangle Intersect(Rectangle rect)
Parameters
Returns
IntersectsWith(Rectangle)
Declaration
public bool IntersectsWith(Rectangle rect)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Union(Rectangle)
Declaration
public Rectangle Union(Rectangle rect)
Parameters
Returns
Operators
operator ==(Rectangle, Rectangle)
Declaration
public static bool operator ==(Rectangle rect1, Rectangle rect2)
Parameters
Returns
operator !=(Rectangle, Rectangle)
Declaration
public static bool operator !=(Rectangle rect1, Rectangle rect2)
Parameters
Returns