Class Size
The rectangle properties are height, width, and so on.
[DataContract]
public class Size
- Inheritance
-
Size
- Inherited Members
Constructors
Size(float, float)
Initializes a new instance of the Size class.
public Size(float width = 35, float height = 16)
Parameters
width
floatGets or sets the width. (default to 35F).
height
floatGets or sets the height. (default to 16F).
Properties
Height
Gets or sets the height of rectangle.
[DataMember(Name = "height", EmitDefaultValue = false)]
public float Height { get; set; }
Property Value
- float
Gets or sets the height.
Width
Gets or sets the width of rectangle.
[DataMember(Name = "width", EmitDefaultValue = false)]
public float Width { get; set; }
Property Value
- float
Gets or sets the width.
Methods
ToJson()
Returns the JSON string presentation of the object.
public virtual string ToJson()
Returns
- string
JSON string presentation of the object.