Class LengthOrAuto

Class LengthOrAuto

Nom dels espais: Aspose.Svg.Drawing Assemblea: Aspose.SVG.dll (25.5.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

IEquatable

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.Svg.Drawing.LongthOrAuto i posa l’estat a ‘auto’.

public LengthOrAuto()

LengthOrAuto(Length)

Inicialitza una nova instància de la classe Aspose.Svg.Drawing.LongthOrAuto i posa l’estat a ’llongt'.

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

bool

Length

Obté o fixa la longitud.

public Length Length { get; set; }

Valor de la propietat

Length

UnitType

Obté el tipus d’unitat de l’Aspose.Svg.Drawing.Unit.

public UnitType UnitType { get; }

Valor de la propietat

UnitType

Methods

Equals(Unit)

Determina si l’especificada Aspose.Svg.Drawing.Unit, és igual a aquesta instància.

public override bool Equals(Unit other)

Parameters

other Unit

El Aspose.Svg.Drawing.Unit per comparar amb aquesta instància.

Returns

bool

‘verd’ si l’especificada Aspose.Svg.Drawing.Unit és igual a aquesta instància; en cas contrari, ‘falsa’.

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

string

Un sistema.String que representa aquesta instància.

Operators

Operador implícit LengthOrAuto(Length)

Es realitza una conversió implícita des d’Aspose.Svg.Drawing.LongthOrAuto.La longitud a l’ASPOSE.

public static implicit operator LengthOrAuto(Length length)

Parameters

length Length

El valor.

Returns

LengthOrAuto

El resultat de la conversió.

Veure també

Unit

 Català