Class LengthOrAuto
Nombre del espacio: Aspose.Html.Drawing Colección: Aspose.HTML.dll (25.4.0)
Representa un contenedor para la longitud de almacenamiento o unidades “auto”.
[ComVisible(true)]
public class LengthOrAuto : Unit, IEquatable<unit>
Inheritance
object ← Unit ← LengthOrAuto
Implements
Miembros heredados
Unit.Equals(Unit) ,y, Unit.Equals(object) ,y, Unit.GetHashCode() ,y, Unit.ToString() ,y, Unit.FromCentimeters(double) ,y, Unit.FromMillimeters(double) ,y, Unit.FromQuarterMillimeters(double) ,y, Unit.FromInches(double) ,y, Unit.FromPicas(double) ,y, Unit.FromPoints(double) ,y, Unit.FromPixels(double) ,y, Unit.FromDegrees(double) ,y, Unit.FromGradians(double) ,y, Unit.FromRadians(double) ,y, Unit.FromTurns(double) ,y, Unit.FromSeconds(double) ,y, Unit.FromMilliseconds(double) ,y, Unit.FromHertz(double) ,y, Unit.FromKiloHertz(double) ,y, Unit.FromDotsPerInch(double) ,y, Unit.FromDotsPerCentimeters(double) ,y, Unit.FromDotsPerPixel(double) ,y, Unit.UnitType ,y, object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Constructors
LengthOrAuto()
Inicia una nueva instancia de la clase Aspose.Html.Drawing.LengthOrAuto y establece el estado a ‘auto’.
public LengthOrAuto()
LengthOrAuto(Length)
Inicia una nueva instancia de la clase Aspose.Html.Drawing.LengthOrAuto y establece el estado a ’longht'.
public LengthOrAuto(Length length)
Parameters
length
Length
La longitud.
Properties
IsAuto
Recibe un valor que indica si esta instancia está en ‘auto’.
public bool IsAuto { get; }
Valor de la propiedad
Length
Obtenga o establece la longitud.
public Length Length { get; set; }
Valor de la propiedad
UnitType
Obtenga el tipo de unidad del Aspose.Html.Drawing.Unit.
public UnitType UnitType { get; }
Valor de la propiedad
Methods
Equals(Unit)
Determina si la especificada Aspose.Html.Drawing.Unit, es igual a esta instancia.
public override bool Equals(Unit other)
Parameters
other
Unit
El Aspose.Html.Drawing.Unit para comparar con esta instancia.
Returns
‘verdad’ si el Aspose.Html.Drawing.Unit especificado es igual a esta instancia; de lo contrario, ‘falso’.
SetAuto()
Resetar el contenedor a la etiqueta ‘auto’.
public void SetAuto()
ToString()
Retorna un Sistema.String que representa esta instancia.
public override string ToString()
Returns
Un sistema.String que representa esta instancia.
Operators
Operador implícito LengthOrAuto(Length)
Performan una conversión implícita de Aspose.Html.Drawing.LengthOrAuto.La longitud a __ WL51.
public static implicit operator LengthOrAuto(Length length)
Parameters
length
Length
El valor.
Returns
El resultado de la conversión.