Class Time

Class Time

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

rappresenta un’unità di tempo.

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

Inheritance

object Unit Numeric Dimension Time

Implements

IEquatable

I membri ereditari

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(Doppio, UnitType, UnitType)

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

protected override 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.

Operators

Operatore +(tempo, tempo)

Implementa l’operatore +.

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

Time

Il risultato dell’operatore.

Exceptions

ArgumentNullException

Gli argomenti sono zero

ArgumentException

Gli argomenti hanno diversi tipioGli argomenti hanno una risoluzione diversao

Operatore =(tempo, tempo)

Implementare l’operatore =

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

Operatore &il gt;(tempo, tempo)

Implementare l’operatore >

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

Exceptions

ArgumentException

Gli argomenti hanno diversi tipi

ArgumentNullException

Un argomento è zero

Operatore &Il gt =(tempo, tempo)

Implementare l’operatore >=.

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

Exceptions

ArgumentException

Gli argomenti hanno diversi tipi

ArgumentNullException

Un argomento è zero

Operatore !=(tempo, tempo)

Implementa l’operatore!

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

operatore <(tempo, tempo)

Implementa l’operatore <

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

Exceptions

ArgumentException

Gli argomenti hanno diversi tipi

ArgumentNullException

Un argomento è zero

Sito ufficiale <=(tempo, tempo)

Implementare l’operatore <=.

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

bool

Il risultato dell’operatore.

Exceptions

ArgumentException

Gli argomenti hanno diversi tipi

ArgumentNullException

Un argomento è zero

Operatore -(tempo, tempo)

Implementazione dell’operatore -.

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

Parameters

a Time

Il parametro a.

b Time

Il parametro b.

Returns

Time

Il risultato dell’operatore.

Exceptions

ArgumentNullException

Gli argomenti sono zero

ArgumentException

Gli argomenti hanno diversi tipioGli argomenti hanno risoluzioni diverseo

 Italiano