Class LengthOrAuto
Nom dels espais: Aspose.Html.Drawing Assemblea: Aspose.HTML.dll (25.4.0)
Representa un contenidor per a la longitud d’emmagatzematge o unitats ‘auto’.
[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>
Inheritance
object ← Unit ← LengthOrAuto
Implements
Membres heretats
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()
Inicialitza una nova instància de la classe Aspose.Html.Drawing.LongthOrAuto i posa l’estat a ‘auto’.
public LengthOrAuto()
LengthOrAuto(Length)
Inicialitza una nova instància de la classe Aspose.Html.Drawing.LengthOrAuto i estableix l’estat a ’longht'.
public LengthOrAuto(Length length)
Parameters
length
Length
La longitud.
Properties
IsAuto
Obté un valor que indica si aquesta instància està en ‘auto’.
public bool IsAuto { get; }
Valor de la propietat
Length
Obté o fixa la longitud.
public Length Length { get; set; }
Valor de la propietat
UnitType
Obté el tipus d’unitat de la Aspose.Html.Drawing.Unit.
public UnitType UnitType { get; }
Valor de la propietat
Methods
Equals(Unit)
Determina si el Aspose.Html.Drawing.Unit especificat és igual a aquesta instància.
public override bool Equals(Unit other)
Parameters
other
Unit
La Aspose.Html.Drawing.Unit per comparar amb aquesta instància.
Returns
’true’ si l’especificada Aspose.Html.Drawing.Unit és igual a aquesta instància; en cas contrari, ‘false’.
SetAuto()
Reset el contenidor a l’estat “auto”.
public void SetAuto()
ToString()
Retorna un System.String que representa aquesta instància.
public override string ToString()
Returns
Un sistema.String que representa aquesta instància.
Operators
Operador implícit LengthOrAuto(Length)
Es realitza una conversió implícita des de Aspose.Html.Drawing.LongthOrAuto.La llargada fins a __ WL51.Hml.Royal.
public static implicit operator LengthOrAuto(Length length)
Parameters
length
Length
El valor.
Returns
El resultat de la conversió.