Class Rectangle
The rectangle properties are height, width, and so on.
Inheritance
System.Object
Rectangle
Namespace: BoldSign.Model
Assembly: BoldSign.Api.dll
Syntax
public class Rectangle : object
Constructors
| Improve this Doc View SourceRectangle(Single, Single, Single, Single)
Initializes a new instance of the Rectangle class.
Declaration
public Rectangle(float x = 0F, float y = 0F, float width = 0F, float height = 0F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | Gets or sets the x. (default to 0F). |
System.Single | y | Gets or sets the y. (default to 0F). |
System.Single | width | Gets or sets the width. (default to 0F). |
System.Single | height | Gets or sets the height. (default to 0F). |
Properties
| Improve this Doc View SourceHeight
Gets or sets the height of rectangle.
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Gets or sets the height. |
Width
Gets or sets the width of rectangle.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Gets or sets the width. |
X
Gets or sets the x.
Declaration
public float X { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Gets or sets the x. |
Y
Gets or sets the y.
Declaration
public float Y { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Gets or sets the y. |
Methods
| Improve this Doc View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |