Class Length

Class Length

Nome do espaço: Aspose.Html.Drawing Assembleia: Aspose.HTML.dll (25.4.0)

Representa uma unidade de medição de comprimento.

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

Inheritance

object Unit Numeric Dimension Length

Implements

IEquatable

Membros herdados

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

Methods

OnConvert(duplo, UnitType, UnitType)

Chamado quando a unidade é convertida para o tipo de unidade especificado.

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

Parameters

value double

O valor .

fromType UnitType

do tipo de unidade.

toType UnitType

para o tipo de unidade.

Returns

double

Operators

Operador +(comprimento, comprimento)

Implementar o operador +.

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

Parameters

a Length

Parâmetros a.

b Length

Parâmetro B

Returns

Length

O resultado do operador.

Exceptions

ArgumentNullException

Argumentos são nulos

ArgumentException

Argumentos têm diferentes tiposouArgumentos têm resolução diferenteou

Operador =(comprimento, comprimento)

Implementar o operador = =.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Operador &O PT;(comprimento, comprimento)

Implementação do operador >.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Exceptions

ArgumentException

Argumentos têm diferentes tipos

ArgumentNullException

Um argumento é nulo

Operador &Gt =(comprimento, comprimento)

Implementação do operador >=.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Exceptions

ArgumentException

Argumentos têm diferentes tipos

ArgumentNullException

Um argumento é nulo

Operador !=(comprimento, comprimento)

Implemente o operador! =

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Operador <(comprimento, comprimento)

Implementação do operador <.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Exceptions

ArgumentException

Argumentos têm diferentes tipos

ArgumentNullException

Um argumento é nulo

Operador <=(comprimento, comprimento)

Implementação do operador <=.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

bool

O resultado do operador.

Exceptions

ArgumentException

Argumentos têm diferentes tipos

ArgumentNullException

Um argumento é nulo

Operador -(comprimento, comprimento)

Implementação do operador.

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

Parameters

a Length

O parâmetro a.

b Length

O parâmetro B.

Returns

Length

O resultado do operador.

Exceptions

ArgumentNullException

Argumentos são nulos

ArgumentException

Argumentos têm diferentes tiposouArgumentos têm resoluções diferentesou

 Português