Class Time

Class Time

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

代表一个时间单位。

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

Inheritance

object Unit Numeric Dimension Time

Implements

IEquatable

继承人

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(双,单位类型,单位类型)

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

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

Parameters

value double

它的价值。

fromType UnitType

单位类型。

toType UnitType

单位类型。

Returns

double

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

Operators

运营商 +(时间,时间)

执行操作员 +。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

Time

运营商的结果。

Exceptions

ArgumentNullException

论点是零

ArgumentException

论点有不同的类型或论点有不同的决议或

主持人 =(时间,时间)

执行操作员 ==。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

运营商 >(时间,时间)

执行运营商>。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

Exceptions

ArgumentException

论点有不同的类型

ArgumentNullException

一个论点是零

运营商 >=(时间,时间)

执行操作员 >=。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

Exceptions

ArgumentException

论点有不同的类型

ArgumentNullException

一个论点是零

运营商 !=(时间,时间)

执行运营商!

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

主持人 <(时间,时间)

执行运营商<。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

Exceptions

ArgumentException

论点有不同的类型

ArgumentNullException

一个论点是零

主持人 <=(时间,时间)

执行操作员 <=。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

bool

运营商的结果。

Exceptions

ArgumentException

论点有不同的类型

ArgumentNullException

一个论点是零

运营商 -(时间,时间)

执行运营商 -。

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

Parameters

a Time

参数A。

b Time

参数B。

Returns

Time

运营商的结果。

Exceptions

ArgumentNullException

论点是零

ArgumentException

论点有不同的类型或论点有不同的决议或

 中文