Class Length
Il nome: Aspose.Html.Drawing Assemblaggio: Aspose.HTML.dll (25.4.0)
Unità di misurazione di lunghezza.
[ComVisible(true)]
public sealed class Length : Dimension, IEquatable<unit>
Inheritance
object ← Unit ← Numeric ← Dimension ← Length
Implements
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
Operators
Operatore +(lunghezza, lunghezza)
Implementa l’operatore +.
public static Length operator +(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti sono zero
Gli argomenti hanno diversi tipioGli argomenti hanno una risoluzione diversao
Operatore =(lunghezza, lunghezza)
Implementare l’operatore =
public static bool operator ==(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Operatore &il gt;(lunghezza, lunghezza)
Implementare l’operatore >
public static bool operator >(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti hanno diversi tipi
Un argomento è zero
Operatore &Il gt =(lunghezza, lunghezza)
Implementare l’operatore >=.
public static bool operator >=(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti hanno diversi tipi
Un argomento è zero
Operatore !=(lunghezza, lunghezza)
Implementa l’operatore!
public static bool operator !=(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
operatore <(lunghezza, lunghezza)
Implementa l’operatore <
public static bool operator <(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti hanno diversi tipi
Un argomento è zero
Sito ufficiale <=(lunghezza, lunghezza)
Implementare l’operatore <=.
public static bool operator <=(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti hanno diversi tipi
Un argomento è zero
Operatore -(lunghezza, lunghezza)
Implementazione dell’operatore -.
public static Length operator -(Length a, Length b)
Parameters
a
Length
Il parametro a.
b
Length
Il parametro b.
Returns
Il risultato dell’operatore.
Exceptions
Gli argomenti sono zero
Gli argomenti hanno diversi tipioGli argomenti hanno risoluzioni diverseo