Struct RECTF
See RectF class
Namespace: Dapplo.Windows.Common.Structs
Assembly: Dapplo.Windows.Common.dll
Syntax
public struct RECTF
Constructors
| Improve this Doc View SourceRECTF(Single, Single, Single, Single)
Constructor from x,y,width,height
Declaration
public RECTF(float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | int |
System.Single | y | int |
System.Single | width | int |
System.Single | height | int |
Properties
| Improve this Doc View SourceBottom
Bottom of the rectangle
Declaration
public float Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Empty
Empty RECT
Declaration
public static RECTF Empty { get; }
Property Value
Type | Description |
---|---|
RECTF |
Height
Heigh of the RECT
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
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 float Left { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Location
Location for this RECT
Declaration
public POINT Location { get; set; }
Property Value
Type | Description |
---|---|
POINT |
Right
Right of the rectangle
Declaration
public float Right { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Size
Size for this RECT
Declaration
public SIZE Size { get; set; }
Property Value
Type | Description |
---|---|
SIZE |
Top
Top of the rectangle
Declaration
public float Top { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Width
Width of the RECT
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
X
X value
Declaration
public float X { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Y
X location of the rectangle
Declaration
public float Y { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceContains(POINT)
Test if this RECT contains the specified POINT
Declaration
public bool Contains(POINT point)
Parameters
Type | Name | Description |
---|---|---|
POINT | point | POINT |
Returns
Type | Description |
---|---|
System.Boolean | true if it contains |
Equals(RECTF)
Equalss
Declaration
public bool Equals(RECTF rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECTF | 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(RECTF, RECTF)
Equals for RECTF
Declaration
public static bool operator ==(RECTF rectangle1, RECTF rectangle2)
Parameters
Type | Name | Description |
---|---|---|
RECTF | rectangle1 | RECTF |
RECTF | rectangle2 | RECTF |
Returns
Type | Description |
---|---|
System.Boolean | bool true if they are equal |
Implicit(RECTF to Rect)
Cast RECTF to Rect
Declaration
public static implicit operator Rect(RECTF rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECTF | rectangle | RECT |
Returns
Type | Description |
---|---|
Rect | Rect |
Implicit(RECTF to Rectangle)
Cast RECTF to Rectangle
Declaration
public static implicit operator Rectangle(RECTF rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECTF | rectangle | RECT |
Returns
Type | Description |
---|---|
Rectangle | Rectangle |
Implicit(RECTF to RectangleF)
Cast RECTF to RectangleF
Declaration
public static implicit operator RectangleF(RECTF rectangle)
Parameters
Type | Name | Description |
---|---|---|
RECTF | rectangle | RECT |
Returns
Type | Description |
---|---|
RectangleF | Rectangle |
Implicit(Rect to RECTF)
Cast Rect to RECTF
Declaration
public static implicit operator RECTF(Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
Rect | rectangle | Rect |
Returns
Type | Description |
---|---|
RECTF | RECTF |
Implicit(Rectangle to RECTF)
Cast Rectangle to RECTF
Declaration
public static implicit operator RECTF(Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rectangle | Rectangle |
Returns
Type | Description |
---|---|
RECTF | RECTF |
Implicit(RectangleF to RECTF)
Cast RectangleF to RECTF
Declaration
public static implicit operator RECTF(RectangleF rectangle)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | rectangle | RectangleF |
Returns
Type | Description |
---|---|
RECTF | RECTF |
Inequality(RECTF, RECTF)
Not is operator
Declaration
public static bool operator !=(RECTF rectangle1, RECTF rectangle2)
Parameters
Type | Name | Description |
---|---|---|
RECTF | rectangle1 | RECTF |
RECTF | rectangle2 | RECTF |
Returns
Type | Description |
---|---|
System.Boolean | bool |