Class Numeric

Class Numeric

Il nome: Aspose.Html.Drawing Assemblaggio: Aspose.HTML.dll (25.4.0)

Fornisce la classe di base per i tipi numerici.

[ComVisible(true)]
public abstract class Numeric : Unit, IEquatable<unit>

Inheritance

object Unit Numeric

Derived

Dimension

Implements

IEquatable

I membri ereditari

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()

Methods

CompareTo(Numeric)

Confronta l’istanza corrente con un altro oggetto dello stesso tipo e restituisce un integratore che indica se l’istanza corrente precede, segue o si verifica nella stessa posizione nell’ordine della sorta come l’altro oggetto.

public int CompareTo(Numeric other)

Parameters

other Numeric

L’altro oggetto da confrontare.

Returns

int

Un valore che indica l’ordine relativo degli oggetti confrontati.

Exceptions

ArgumentNullException

Altri

ArgumentException

Equals(Unit)

Determinerà se la specifica Aspose.Html.Drawing.Unit, è uguale a questa instanza.

public override bool Equals(Unit other)

Parameters

other Unit

L’Aspose.Html.Drawing.Unit per confrontare con questa instanza.

Returns

bool

’true’ se la specifica Aspose.Html.Drawing.Unit è uguale a questa instanza; altrimenti, ‘falso’.

GetHashCode()

Ritorna un codice hash per questo caso.

public override int GetHashCode()

Returns

int

Un codice hash per questo esempio, adatto per l’uso in algoritmi di hashing e strutture di dati come una tabella hash.

GetValue()

Riceve il valore unitario.

public double GetValue()

Returns

double

Il valore dell’oggetto.

GetValue(UnitType)

Riceve il valore convertito al specificato Aspose.Html.Drawing.UnitType.

public double GetValue(UnitType unitType)

Parameters

unitType UnitType

Tipo di unità.

Returns

double

Ritorna il valore che viene convertito al tipo specificato.

Exceptions

ArgumentNullException

Unità

OnConvert(Doppio, UnitType, UnitType)

Si chiama quando l’unità viene convertita al tipo di unità specificato.

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

Parameters

value double

Il valore .

fromType UnitType

Tipo di unità.

toType UnitType

Unità di tipo.

Returns

double

Ritorna il valore che viene convertito al tipo specificato.

ToString()

Ritorna un System.String che rappresenta questa instanza.

public override string ToString()

Returns

string

Un sistema.String che rappresenta questa instanza.

 Italiano