com.aspose.html.drawing

Class LengthOrAuto

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Unit>


    public class LengthOrAuto
    extends Unit

    Represents a container for storage length or 'auto' units..

    See Also:
    Unit
    • Constructor Detail

      • LengthOrAuto

        public LengthOrAuto()

        Initializes a new instance of the LengthOrAuto class and sets state to 'auto'.

      • LengthOrAuto

        public LengthOrAuto(Length length)

        Initializes a new instance of the LengthOrAuto class and sets state to 'lenght'.

        Parameters:
        length - The length.
    • Method Detail

      • getUnitType_LengthOrAuto_New

        public UnitType getUnitType_LengthOrAuto_New()

        Gets the unit type of the Unit.

        Value: The type of the unit.
      • getLength

        public Length getLength()

        Gets or sets the length.

        Value: The length.
      • setLength

        public void setLength(Length value)

        Gets or sets the length.

        Value: The length.
      • setAuto

        public void setAuto()

        Resets container to state 'auto'.

      • isAuto

        public boolean isAuto()

        Gets a value indicating whether this instance is in 'auto'.

        Value: true if this instance is automatic; otherwise, false.
      • to_LengthOrAuto

        public static LengthOrAuto to_LengthOrAuto(Length length)

        Performs an implicit conversion from Length to LengthOrAuto.

        Parameters:
        length - The value.
        Returns:
        The result of the conversion.