Class Length

Class Length

ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.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(สอง, UnitType, UnitType)

ชื่อเมื่อหน่วยจะถูกแปลงเป็นประเภทหน่วยที่ระบุ

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

ตัวอักษร A

b Length

พารามิเตอร์ B

Returns

Length

ผลของผู้ประกอบการ

Exceptions

ArgumentNullException

Arguments เป็น null

ArgumentException

Arguments มีประเภทที่แตกต่างกันหรือArguments มีคํานวณที่แตกต่างกันหรือ

ผู้ประกอบการ =(ความยาว ความยาว)

แนะนําผู้ประกอบการ ==

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

ผู้ประกอบการ &กี;(ความยาว ความยาว)

แนะนําผู้ประกอบการ >

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

Exceptions

ArgumentException

Arguments มีประเภทที่แตกต่างกัน

ArgumentNullException

คําอธิบายเป็น null

ผู้ประกอบการ &gt =(ความยาว ความยาว)

แนะนําผู้ประกอบการ >=

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

Exceptions

ArgumentException

Arguments มีประเภทที่แตกต่างกัน

ArgumentNullException

คําอธิบายเป็น null

ผู้ประกอบการ !=(ความยาว ความยาว)

แนะนําผู้ประกอบการ !=

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

ผู้ประกอบการ <(ความยาว ความยาว)

แนะนําผู้ประกอบการ <

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

Exceptions

ArgumentException

Arguments มีประเภทที่แตกต่างกัน

ArgumentNullException

คําอธิบายเป็น null

ผู้ประกอบการ <=(ความยาว ความยาว)

แนะนําผู้ประกอบการ <=

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

bool

ผลของผู้ประกอบการ

Exceptions

ArgumentException

Arguments มีประเภทที่แตกต่างกัน

ArgumentNullException

คําอธิบายเป็น null

ผู้ประกอบการ -(ความยาว ความยาว)

การดําเนินการโดยผู้ประกอบการ -.

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

Parameters

a Length

พารามิเตอร์ A

b Length

พารามิเตอร์ B

Returns

Length

ผลของผู้ประกอบการ

Exceptions

ArgumentNullException

Arguments เป็น null

ArgumentException

Arguments มีประเภทที่แตกต่างกันหรือArguments มีการแก้ปัญหาที่แตกต่างกันหรือ

 แบบไทย