Class Length

Class Length

اسم الفضاء : Aspose.Svg.Drawing جمع: Aspose.SVG.dll (25.5.0)

يمثل وحدة قياس الطول.

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

Inheritance

object Unit Numeric Dimension Length

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 Length operator +(Length a, Length b)

Parameters

a Length

المعايير أ .

b Length

المعايير ب

Returns

Length

النتيجة من المشغل

Exceptions

ArgumentNullException

الحجج صفر

ArgumentException

الحجج لها أنواع مختلفةأوالحجج لديها حل مختلفأو

المشغل = =(الطول، الطول)

إدخال المشغل = =.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

المشغل &gt ؛(الطول، الطول)

تنفيذه المشغل &gt؛.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

Exceptions

ArgumentException

الحجج لها أنواع مختلفة

ArgumentNullException

الحجة صفر

المشغل &إلخ =(الطول، الطول)

تنفيذ المشغل >=.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

Exceptions

ArgumentException

الحجج لها أنواع مختلفة

ArgumentNullException

الحجة صفر

المشغل !=(الطول، الطول)

إرسال رسالة خاصة إلى المشغل !!

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

المشغل <(الطول، الطول)

تنفيذه المشغل &lt؛.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

Exceptions

ArgumentException

الحجج لها أنواع مختلفة

ArgumentNullException

الحجة صفر

المشغل <=(الطول، الطول)

تنفيذ المشغل <=.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

bool

النتيجة من المشغل

Exceptions

ArgumentException

الحجج لها أنواع مختلفة

ArgumentNullException

الحجة صفر

المشغل -(الطول، الطول)

إرسال رسالة إلى المشغل -.

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

Parameters

a Length

المعايير أ .

b Length

المعايير ب .

Returns

Length

النتيجة من المشغل

Exceptions

ArgumentNullException

الحجج صفر

ArgumentException

الحجج لها أنواع مختلفةأوالحجج لديها حلول مختلفةأو

 عربي