Class LengthOrAuto

Class LengthOrAuto

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Represents a container for storage length or ‘auto’ units..

[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>

Inheritance

objectUnitLengthOrAuto

Implements

IEquatable<unit>

Inherited Members

Unit.Equals(Unit), Unit.Equals(object), Unit.GetHashCode(), Unit.ToString(), Unit.FromCentimeters(double), Unit.FromMillimeters(double), Unit.FromQuarterMillimeters(double), Unit.FromInches(double), Unit.FromPicas(double), Unit.FromPoints(double), Unit.FromPixels(double), Unit.FromDegrees(double), Unit.FromGradians(double), Unit.FromRadians(double), Unit.FromTurns(double), Unit.FromSeconds(double), Unit.FromMilliseconds(double), Unit.FromHertz(double), Unit.FromKiloHertz(double), Unit.FromDotsPerInch(double), Unit.FromDotsPerCentimeters(double), Unit.FromDotsPerPixel(double), Unit.UnitType, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

LengthOrAuto()

Initializes a new instance of the Aspose.Html.Drawing.LengthOrAuto class and sets state to ‘auto’.

public LengthOrAuto()

LengthOrAuto(Length)

Initializes a new instance of the Aspose.Html.Drawing.LengthOrAuto class and sets state to ’lenght’.

public LengthOrAuto(Length length)

Parameters

length Length

The length.

Properties

IsAuto

Gets a value indicating whether this instance is in ‘auto’.

public bool IsAuto { get; }

Property Value

bool

Length

Gets or sets the length.

public Length Length { get; set; }

Property Value

Length

UnitType

Gets the unit type of the Aspose.Html.Drawing.Unit.

public UnitType UnitType { get; }

Property Value

UnitType

Methods

Equals(Unit)

Determines whether the specified Aspose.Html.Drawing.Unit, is equal to this instance.

public override bool Equals(Unit other)

Parameters

other Unit

The Aspose.Html.Drawing.Unit to compare with this instance.

Returns

bool

true if the specified Aspose.Html.Drawing.Unit is equal to this instance; otherwise, false.

SetAuto()

Resets container to state ‘auto’.

public void SetAuto()

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

string

A System.String that represents this instance.

Operators

implicit operator LengthOrAuto(Length)

Performs an implicit conversion from Aspose.Html.Drawing.LengthOrAuto.Length to Aspose.Html.Drawing.LengthOrAuto.

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

The value.

Returns

LengthOrAuto

The result of the conversion.

See Also

Unit </unit>