Struct NativePaint.RECT
Defines the coordinates of the upper-left and lower-right corners of a rectangle.
Inherited Members
Namespace: Syncfusion.WinForms.Core
Assembly: Syncfusion.Shared.Base.dll
Syntax
public struct RECT
Constructors
RECT(Rectangle)
Initializes a new instance of the NativePaint.RECT struct.
Declaration
public RECT(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rect | The Rectangle that need to convert to the RECT. |
RECT(Int32, Int32, Int32, Int32)
Initializes a new instance of the NativePaint.RECT struct.
Declaration
public RECT(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The x-coordinate of the upper-left corner of the rectangle. |
System.Int32 | top | The y-coordinate of the upper-left corner of the rectangle. |
System.Int32 | right | The x-coordinate of the lower-right corner of the rectangle. |
System.Int32 | bottom | The y-coordinate of the lower-right corner of the rectangle. |
Fields
Bottom
The bottom location of the rectangle.
Declaration
public int Bottom
Field Value
Type |
---|
System.Int32 |
Left
The left coordinate of the rectangle.
Declaration
public int Left
Field Value
Type |
---|
System.Int32 |
Right
The right coordinate of the rectangle.
Declaration
public int Right
Field Value
Type |
---|
System.Int32 |
Top
The top coordinate of the rectangle.
Declaration
public int Top
Field Value
Type |
---|
System.Int32 |
Properties
Height
Gets the Height of the RECT.
Declaration
public int Height { get; }
Property Value
Type |
---|
System.Int32 |
Width
Gets the width of the RECT.
Declaration
public int Width { get; }
Property Value
Type |
---|
System.Int32 |
Methods
ToString()
Return the co-ordinates of the rectangle in a string format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string value of the rectangle region. |
Overrides
Operators
Implicit(NativePaint.RECT to Rectangle)
Convert the RECT to System.Drawing.Rectangle structure.
Declaration
public static implicit operator Rectangle(NativePaint.RECT rect)
Parameters
Type | Name | Description |
---|---|---|
NativePaint.RECT | rect | The RECT region of the control. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Returns the rectangle. |