Class Length

Class Length

Nombre del espacio: Aspose.Html.Drawing Colección: Aspose.HTML.dll (25.4.0)

Representa una unidad de medición de longitud.

[ComVisible(true)]
public sealed class Length : Dimension, IEquatable<unit>

Inheritance

object Unit Numeric Dimension Length

Implements

IEquatable

Miembros heredados

Dimension.ToString() ,y, Numeric.GetValue() ,y, Numeric.CompareTo(Numeric) ,y, Numeric.Equals(Unit) ,y, Numeric.GetHashCode() ,y, Numeric.ToString() ,y, Numeric.GetValue(UnitType) ,y, 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.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()

Methods

OnConvert(Tipo de unidad, UnidadType)

Se llama cuando la unidad se convierte en el tipo de unito especificado.

protected override double OnConvert(double value, UnitType fromType, UnitType toType)

Parameters

value double

El valor.

fromType UnitType

Tipo de unidad.

toType UnitType

El tipo de unidad.

Returns

double

Operators

Operador +(Longitud, longitud)

Implementa el operador +.

public static Length operator +(Length a, Length b)

Parameters

a Length

Parámetros a.

b Length

Parámetros b.

Returns

Length

El resultado del operador.

Exceptions

ArgumentNullException

Los argumentos son nulos

ArgumentException

Los argumentos tienen diferentes tiposoLos argumentos tienen una resolución diferenteo

El operador =(Longitud, longitud)

Implementar el operador ==.

public static bool operator ==(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

Operador &y&el gt;(Longitud, longitud)

Implementación del operador >.

public static bool operator &gt;(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador &y&El gt;=(Longitud, longitud)

Implementar el operador >=.

public static bool operator &gt;=(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador !=(Longitud, longitud)

Implementa el operador !=.

public static bool operator !=(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

El operador <(Longitud, longitud)

Implementación del operador <.

public static bool operator &lt;(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

El operador <=(Longitud, longitud)

Implementar el operador <=.

public static bool operator &lt;=(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador -(Longitud, longitud)

Implementar el operador -.

public static Length operator -(Length a, Length b)

Parameters

a Length

El parámetro A.

b Length

El parámetro B.

Returns

Length

El resultado del operador.

Exceptions

ArgumentNullException

Los argumentos son nulos

ArgumentException

Los argumentos tienen diferentes tiposoLos argumentos tienen diferentes resolucioneso

 Español