Class DataFormItemLength
Represents a structure which is used to define the width of DataForm Items(label and editor).
Inheritance
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public sealed class DataFormItemLength : ValueType
Constructors
DataFormItemLength(Double)
Initializes a new instance of the DataFormItemLength struct.
Declaration
public DataFormItemLength(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The length value. |
DataFormItemLength(Double, DataFormItemLengthUnitType)
Initializes a new instance of the DataFormItemLength struct.
Declaration
public DataFormItemLength(double value, DataFormItemLengthUnitType type)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The length value. |
DataFormItemLengthUnitType | type | The unit type. |
Properties
IsStar
Gets a value indicating whether the unit type of the DataFormItemLength is DataFormItemLengthUnitType.Star.
Declaration
public bool IsStar { get; }
Property Value
Type |
---|
System.Boolean |
UnitType
Gets the unit type of the DataFormItemLength
Declaration
public DataFormItemLengthUnitType UnitType { get; }
Property Value
Type |
---|
DataFormItemLengthUnitType |
Value
Gets the value of the DataFormItemLength.
Declaration
public double Value { get; }
Property Value
Type |
---|
System.Double |
Methods
Equals(Object)
Test the equality of this DataFormItemLength and another one.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if both values are equal,otherwise false. |
GetHashCode()
Returns a value that is used for efficient storage of this object in collections.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code. |
ToString()
Returns the value and the DataFormItemLength unit type, separated by a ".".
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | the string value. |
Operators
Equality(DataFormItemLength, DataFormItemLength)
Checks whether the values are equal.
Declaration
public static bool operator ==(DataFormItemLength left, DataFormItemLength right)
Parameters
Type | Name | Description |
---|---|---|
DataFormItemLength | left | The left side value. |
DataFormItemLength | right | The right side value. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if both values are equal, otherwise false. |
Implicit(Double to DataFormItemLength)
Gets the absolute value for DataFormItemLength.
Declaration
public static implicit operator DataFormItemLength(double absoluteValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | absoluteValue | The length value |
Returns
Type |
---|
DataFormItemLength |
Inequality(DataFormItemLength, DataFormItemLength)
Checks whether the values are not equal.
Declaration
public static bool operator !=(DataFormItemLength left, DataFormItemLength right)
Parameters
Type | Name | Description |
---|---|---|
DataFormItemLength | left | The left side value. |
DataFormItemLength | right | The right side value. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if both values not equal,otherwise false. |