Class Rect
Rectangle.
Inherited Members
Namespace: VisioForge.Core.Types
Assembly: VisioForge.Core.dll
Syntax
public class Rect
Constructors
Rect()
Initializes a new instance of the Rect class.
Declaration
public Rect()
Rect(Rectangle)
Initializes a new instance of the Rect class.
Declaration
public Rect(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | rect | Rectangle. |
Rect(int, int, int, int)
Initializes a new instance of the Rect class.
Declaration
public Rect(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
int | left | Left. |
int | top | Top. |
int | right | Right. |
int | bottom | Bottom. |
Rect(uint, uint, uint, uint)
Initializes a new instance of the Rect class.
Declaration
public Rect(uint left, uint top, uint right, uint bottom)
Parameters
Type | Name | Description |
---|---|---|
uint | left | Left. |
uint | top | Top. |
uint | right | Right. |
uint | bottom | Bottom. |
Rect(Size)
Initializes a new instance of the Rect class.
Declaration
public Rect(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size. |
Properties
Bottom
Gets or sets the bottom.
Declaration
public int Bottom { get; set; }
Property Value
Type | Description |
---|---|
int | The bottom. |
Height
Gets the height.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int | The height. |
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
|
Left
Gets or sets the left.
Declaration
public int Left { get; set; }
Property Value
Type | Description |
---|---|
int | The left. |
Right
Gets or sets the right.
Declaration
public int Right { get; set; }
Property Value
Type | Description |
---|---|
int | The right. |
Top
Gets or sets the top.
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
int | The top. |
Width
Gets the width.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int | The width. |
Methods
ToRectangle()
Converts to Rectangle.
Declaration
public Rectangle ToRectangle()
Returns
Type | Description |
---|---|
Rectangle | Rectangle. |
ToString()
Formats to nice string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string. |