Class Size
Represents the dimension of an element, consisting of width and height properties.
Inheritance
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class Size : Object
Constructors
Size()
Declaration
public Size()
Size(Double, Double)
Declaration
public Size(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | |
System.Double | height |
Properties
Height
Gets or sets the height of an element.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Accepts a double value. The default value is 0. |
Remarks
This property indicates the vertical reach of an element, contributing to its overall shape and layout.
Width
Gets or sets the width of an element.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Accepts a double value. The default value is 0. |
Remarks
This property defines the horizontal span of an element, contributing to its overall shape and layout.
Operators
Equality(Size, Size)
Determines whether two Size objects have the same dimensions.
Declaration
public static bool operator ==(Size a, Size b)
Parameters
Type | Name | Description |
---|---|---|
Size | a | The first Size object to compare. |
Size | b | The second Size object to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(Size, Size)
Determines whether two Size objects have different dimensions.
Declaration
public static bool operator !=(Size a, Size b)
Parameters
Type | Name | Description |
---|---|---|
Size | a | The first Size object to compare. |
Size | b | The second Size object to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Subtraction(Size, Size)
Subtracts the dimensions of one Size object from another.
Declaration
public static Size operator -(Size a, Size b)
Parameters
Type | Name | Description |
---|---|---|
Size | a | The first Size object to operate on. |
Size | b | The second Size object to subtract from the first. |