Struct RECT
See RECT struct
Namespace: Dapplo.Windows.Common.Structs
Assembly: Dapplo.Windows.Common.dll
Syntax
public struct RECT
Constructors
| Improve this Doc View SourceRECT(POINT, SIZE)
Constructor from location and size
Declaration
public RECT(POINT location, SIZE size)
Parameters
Type | Name | Description |
---|---|---|
POINT | location | POINT |
SIZE | size | SIZE |
RECT(Int32, Int32, SIZE)
Constructor from left, right and size
Declaration
public RECT(int left, int top, SIZE size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | int |
System.Int32 | top | int |
SIZE | size | SIZE |
RECT(Int32, Int32, Int32, Int32)
Constructor from left, right, top, bottom
Declaration
public RECT(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | int |
System.Int32 | top | int |
System.Int32 | right | int |
System.Int32 | bottom | int |
Properties
| Improve this Doc View SourceBottom
Bottom of the rectangle
Declaration
public int Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
BottomLeft
Coordinates of the bottom left
Declaration
public POINT BottomLeft { get; }
Property Value
Type | Description |
---|---|
POINT |
BottomRight
Coordinates of the bottom right
Declaration
public POINT BottomRight { get; }
Property Value
Type | Description |
---|---|
POINT |
Empty
Empty RECT
Declaration
public static RECT Empty { get; }
Property Value
Type | Description |
---|---|
RECT |
Height
Heigh of the RECT
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsEmpty
Checks if this RECT is empty
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true when empty |
Left
Left value of the rectangle
Declaration
public int Left { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Location
Location (for this RECT
Declaration
public POINT Location { get; }
Property Value
Type | Description |
---|---|
POINT |
Right
Right of the rectangle
Declaration
public int Right { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Size
Size for this RECT
Declaration
public SIZE Size { get; }
Property Value
Type | Description |
---|---|
SIZE |
SizeOf
SizeOf for this struct
Declaration
public static int SizeOf { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Top
Top of the rectangle
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TopLeft
Coordinates of the top left
Declaration
public POINT TopLeft { get; }
Property Value
Type | Description |
---|---|
POINT |
TopRight
Coordinates of the top right
Declaration
public POINT TopRight { get; }
Property Value
Type | Description |
---|---|
POINT |
Width
Width of the RECT
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
X
X value
Declaration
public int X { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Y
X location of the rectangle
Declaration
public int Y { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(RECT)
Equalss
Declaration
public bool Equals(RECT rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECT | rectangle |
Returns
Type | Description |
---|---|
System.Boolean | bool |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Operators
| Improve this Doc View SourceEquality(RECT, RECT)
Equals for RECT
Declaration
public static bool operator ==(RECT rectangle1, RECT rectangle2)
Parameters
Type | Name | Description |
---|---|---|
RECT | rectangle1 | RECT |
RECT | rectangle2 | RECT |
Returns
Type | Description |
---|---|
System.Boolean | bool true if they are equal |
Implicit(RECT to Rect)
Cast RECT to Rect
Declaration
public static implicit operator Rect(RECT rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECT | rectangle | RECT |
Returns
Type | Description |
---|---|
Rect | Rect |
Implicit(RECT to Rectangle)
Cast RECT to Rectangle
Declaration
public static implicit operator Rectangle(RECT rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECT | rectangle | RECT |
Returns
Type | Description |
---|---|
Rectangle | Rectangle |
Implicit(Rect to RECT)
Cast Rect to RECT
Declaration
public static implicit operator RECT(Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
Rect | rectangle | Rect |
Returns
Type | Description |
---|---|
RECT | RECT |
Implicit(Rectangle to RECT)
Cast Rectangle to RECT
Declaration
public static implicit operator RECT(Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle |
Returns
Type | Description |
---|---|
RECT | RECT |
Inequality(RECT, RECT)
Not is operator
Declaration
public static bool operator !=(RECT rectangle1, RECT rectangle2)
Parameters
Type | Name | Description |
---|---|---|
RECT | rectangle1 | |
RECT | rectangle2 |
Returns
Type | Description |
---|---|
System.Boolean | bool |