Class Numeric
Nom dels espais: Aspose.Html.Drawing Assemblea: Aspose.HTML.dll (25.4.0)
Proporciona la classe de base per a tipus numèrics.
[ComVisible(true)]
public abstract class Numeric : Unit, IEquatable<unit>
Inheritance
Derived
Implements
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()
Methods
CompareTo(Numeric)
Compareix l’instància actual amb un altre objecte del mateix tipus i torna un íntegre que indica si l’instància actual precedeix, segueix o ocorre en la mateixa posició en l’ordre de la sort que l’altre objecte.
public int CompareTo(Numeric other)
Parameters
other
Numeric
L’altre objecte per comparar.
Returns
Un valor que indica l’ordre relatiu dels objectes comparats.
Exceptions
Altres
Equals(Unit)
Determina si el Aspose.Html.Drawing.Unit especificat és igual a aquesta instància.
public override bool Equals(Unit other)
Parameters
other
Unit
La Aspose.Html.Drawing.Unit per comparar amb aquesta instància.
Returns
’true’ si l’especificada Aspose.Html.Drawing.Unit és igual a aquesta instància; en cas contrari, ‘false’.
GetHashCode()
Retorna un codi hash per a aquesta instància.
public override int GetHashCode()
Returns
Un codi hash per a aquest exemple, adequat per utilitzar en algoritmes de hashing i estructures de dades com una taula hash.
GetValue()
Recull el valor de la unitat.
public double GetValue()
Returns
El valor de l’objecte.
GetValue(UnitType)
Obté el valor convertit al Aspose.Html.Drawing.UnitType especificat.
public double GetValue(UnitType unitType)
Parameters
unitType
UnitType
Tipus de la unitat.
Returns
Retorna el valor que es converteix en el tipus especificat.
Exceptions
Unitats
OnConvert(Tipus d’unitat, unitat i unitats)
Es diu quan la unitat es converteix en el tipus d’unitat especificat.
protected abstract double OnConvert(double value, UnitType fromType, UnitType toType)
Parameters
value
double
El valor.
fromType
UnitType
El tipus d’unitat.
toType
UnitType
El tipus de unitat.
Returns
Retorna el valor que es converteix en el tipus especificat.
ToString()
Retorna un System.String que representa aquesta instància.
public override string ToString()
Returns
Un sistema.String que representa aquesta instància.