Class LengthOrAuto

Class LengthOrAuto

Namn på plats: Aspose.Html.Drawing Sammanfattning: Aspose.HTML.dll (25.4.0)

Representerar en behållare för lagringslängd eller “auto” enheter..

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

Inheritance

object Unit LengthOrAuto

Implements

IEquatable

Arvsmedlemmar

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()

Initialiserar en ny instans av Aspose.Html.Drawing.LengthOrAuto klass och ställer till ‘auto’.

public LengthOrAuto()

LengthOrAuto(Length)

Initialiserar en ny instans av Aspose.Html.Drawing.LengthOrAuto-klassen och ställer ställning till ’längt'.

public LengthOrAuto(Length length)

Parameters

length Length

Den längden .

Properties

IsAuto

Det får ett värde som indikerar om denna instans är i ‘auto’.

public bool IsAuto { get; }

Fastighetsvärde

bool

Length

Få eller ställa längden.

public Length Length { get; set; }

Fastighetsvärde

Length

UnitType

Få enhetstypen av Aspose.Html.Drawing.Unit.

public UnitType UnitType { get; }

Fastighetsvärde

UnitType

Methods

Equals(Unit)

Det bestämmer om den angivna Aspose.Html.Drawing.Unit, är lika med denna instans.

public override bool Equals(Unit other)

Parameters

other Unit

Den Aspose.Html.Drawing.Unit att jämföra med denna instans.

Returns

bool

’true’ om den angivna Aspose.Html.Drawing.Unit är lik denna instans; annars, ‘falsk’.

SetAuto()

Reset container till ”bil”.

public void SetAuto()

ToString()

Returnerar en System.String som representerar denna instans.

public override string ToString()

Returns

string

Ett System.String som representerar denna instans.

Operators

implicit operatör LångOrAuto(Length)

Gör en implicit omvandling från Aspose.Html.Drawing.LängdOrAuto.Längd till Aspose.Html.Drawing.LängdOrAuto.

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

och värdet .

Returns

LengthOrAuto

Resultatet av omvandlingen.

Se även

Unit

 Svenska