Class Numeric

Class Numeric

名称: Aspose.Html.Drawing 编辑: Aspose.HTML.dll (25.4.0)

為數位類型提供基級。

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

Inheritance

object Unit Numeric

Derived

Dimension

Implements

IEquatable

继承人

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)

它将当前的例子与同类的另一个对象进行比较,并返回一个整体,表明当前的例子是否在类型顺序中与另一个对象相同的位置前进、跟随或发生。

public int CompareTo(Numeric other)

Parameters

other Numeric

相似的另一个对象。

Returns

int

一个值,表明对比的对象的相对顺序。

Exceptions

ArgumentNullException

其他

ArgumentException

Equals(Unit)

确定所指定的 Aspose.Html.Drawing.Unit 是否等于此例子。

public override bool Equals(Unit other)

Parameters

other Unit

Aspose.Html.Drawing.Unit 与此例子进行比较。

Returns

bool

“真实”如果指定的 Aspose.Html.Drawing.Unit 等于此例;否则,“虚假”。

GetHashCode()

返回此例的Hash代码。

public override int GetHashCode()

Returns

int

此例的哈希代码,适合在哈希算法和数据结构中使用,如哈希表。

GetValue()

获得单位值。

public double GetValue()

Returns

double

对象的价值。

GetValue(UnitType)

将值转换为指定的 Aspose.Html.Drawing.UnitType。

public double GetValue(UnitType unitType)

Parameters

unitType UnitType

单位的类型。

Returns

double

返回已转换为指定类型的值。

Exceptions

ArgumentNullException

单位类型

OnConvert(双,单位类型,单位类型)

被称为当单位转换为指定的单位类型时。

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

Parameters

value double

它的价值。

fromType UnitType

单位类型。

toType UnitType

单位类型。

Returns

double

返回已转换为指定类型的值。

ToString()

返回一个 System.String 代表此例子。

public override string ToString()

Returns

string

一个系统.String 代表这个实例。

 中文