Class Size
Represents the dimension of an element, consisting of width and height properties.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class Size
Constructors
Size()
Declaration
public Size()
Size(double, double)
Declaration
public Size(double width, double height)
Parameters
| Type | Name | Description |
|---|---|---|
| double | width | |
| double | height |
Properties
Height
Gets or sets the height of an element.
Declaration
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| 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
operator ==(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 |
|---|---|
| bool |
|
operator !=(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 |
|---|---|
| bool |
|
operator -(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. |
Returns
| Type | Description |
|---|---|
| Size | A Size object representing the difference in dimensions between the two Size objects. |