alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Struct DataFormItemLength

    Represents a structure which is used to define the width of DataForm Items(label and editor).

    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Syncfusion.Maui.DataForm
    Assembly: Syncfusion.Maui.DataForm.dll
    Syntax
    [TypeConverter(typeof(DataFormItemLengthConverter))]
    public readonly struct DataFormItemLength

    Constructors

    DataFormItemLength(double)

    Initializes a new instance of the DataFormItemLength struct.

    Declaration
    public DataFormItemLength(double value)
    Parameters
    Type Name Description
    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
    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
    bool

    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
    double

    Methods

    Equals(object?)

    Test the equality of this DataFormItemLength and another one.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object.

    Returns
    Type Description
    bool

    Returns true if both values are equal,otherwise false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a value that is used for efficient storage of this object in collections.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Returns the value and the DataFormItemLength unit type, separated by a ".".

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    the string value.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(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
    bool

    Returns true if both values are equal, otherwise false.

    implicit operator DataFormItemLength(double)

    Gets the absolute value for DataFormItemLength.

    Declaration
    public static implicit operator DataFormItemLength(double absoluteValue)
    Parameters
    Type Name Description
    double absoluteValue

    The length value

    Returns
    Type
    DataFormItemLength

    operator !=(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
    bool

    Returns true if both values not equal,otherwise false.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved