Class Time

Class Time

Nombre del espacio: Aspose.Html.Drawing Colección: Aspose.HTML.dll (25.4.0)

Representa una unidad de tiempo.

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

Inheritance

object Unit Numeric Dimension Time

Implements

IEquatable

Miembros heredados

Dimension.ToString() ,y, Numeric.GetValue() ,y, Numeric.CompareTo(Numeric) ,y, Numeric.Equals(Unit) ,y, Numeric.GetHashCode() ,y, Numeric.ToString() ,y, Numeric.GetValue(UnitType) ,y, Unit.Equals(Unit) ,y, Unit.Equals(object) ,y, Unit.GetHashCode() ,y, Unit.ToString() ,y, Unit.FromCentimeters(double) ,y, Unit.FromMillimeters(double) ,y, Unit.FromQuarterMillimeters(double) ,y, Unit.FromInches(double) ,y, Unit.FromPicas(double) ,y, Unit.FromPoints(double) ,y, Unit.FromPixels(double) ,y, Unit.FromDegrees(double) ,y, Unit.FromGradians(double) ,y, Unit.FromRadians(double) ,y, Unit.FromTurns(double) ,y, Unit.FromSeconds(double) ,y, Unit.FromMilliseconds(double) ,y, Unit.FromHertz(double) ,y, Unit.FromKiloHertz(double) ,y, Unit.FromDotsPerInch(double) ,y, Unit.FromDotsPerCentimeters(double) ,y, Unit.FromDotsPerPixel(double) ,y, Unit.UnitType ,y, object.GetType() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()

Methods

OnConvert(Tipo de unidad, UnidadType)

Se llama cuando la unidad se convierte en el tipo de unito especificado.

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

Parameters

value double

El valor.

fromType UnitType

Tipo de unidad.

toType UnitType

El tipo de unidad.

Returns

double

Devolve el valor que se converte en un tipo especificado.

Operators

Operador +(tiempo, tiempo)

Implementa el operador +.

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

Parameters

a Time

Parámetros a.

b Time

Parámetros b.

Returns

Time

El resultado del operador.

Exceptions

ArgumentNullException

Los argumentos son nulos

ArgumentException

Los argumentos tienen diferentes tiposoLos argumentos tienen una resolución diferenteo

El operador =(tiempo, tiempo)

Implementar el operador ==.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

Operador &y&el gt;(tiempo, tiempo)

Implementación del operador >.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador &y&El gt;=(tiempo, tiempo)

Implementar el operador >=.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador !=(tiempo, tiempo)

Implementa el operador !=.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

El operador <(tiempo, tiempo)

Implementación del operador <.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

El operador <=(tiempo, tiempo)

Implementar el operador <=.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

bool

El resultado del operador.

Exceptions

ArgumentException

Los argumentos tienen diferentes tipos

ArgumentNullException

Un argumento es nulo

Operador -(tiempo, tiempo)

Implementar el operador -.

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

Parameters

a Time

El parámetro A.

b Time

El parámetro B.

Returns

Time

El resultado del operador.

Exceptions

ArgumentNullException

Los argumentos son nulos

ArgumentException

Los argumentos tienen diferentes tiposoLos argumentos tienen diferentes resolucioneso

 Español