Class UnitType
ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.0)
รายละเอียดหน่วยการวัด
[ComVisible(true)]
public sealed class UnitType : IEquatable<unittype>
Inheritance
Implements
อนุญาโตตุลาการ
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Fields
Auto
การวัดไม่ได้กําหนด
public static readonly UnitType Auto
หมายเลข
Ch
การวัดมีความสัมพันธ์กับความกว้างของ “0” (ゼロ)
public static readonly UnitType Ch
หมายเลข
Cm
การวัดเป็นเซนติเมตร
public static readonly UnitType Cm
หมายเลข
Deg
การวัดอยู่ในระดับ
public static readonly UnitType Deg
หมายเลข
Dpcm
การวัดเป็นจุดต่อเซนติเมตร
public static readonly UnitType Dpcm
หมายเลข
Dpi
การวัดเป็นจุดต่อ นิ้ว
public static readonly UnitType Dpi
หมายเลข
Dppx
การวัดจะอยู่ในจุดต่อหน่วยพิกเซล
public static readonly UnitType Dppx
หมายเลข
Em
การวัดมีความสัมพันธ์กับความสูงของตัวอักษรขององค์ประกอบแม่
public static readonly UnitType Em
หมายเลข
Ex
การวัดมีความสัมพันธ์กับความสูงของตัวอักษรด้านล่างของตัวอักษร x ของตัวอักษรขององค์ประกอบแม่
public static readonly UnitType Ex
หมายเลข
Grad
การวัดอยู่ใน gradians
public static readonly UnitType Grad
หมายเลข
Hz
การวัดได้ใน hertz
public static readonly UnitType Hz
หมายเลข
In
การวัดเป็น inches
public static readonly UnitType In
หมายเลข
Integer
การวัดเป็นจํานวนที่สมบูรณ์
public static readonly UnitType Integer
หมายเลข
KHz
การวัดเป็น kiloHertz
public static readonly UnitType KHz
หมายเลข
Mm
การวัดเป็นมิลลิเมตร
public static readonly UnitType Mm
หมายเลข
Ms
การวัดเป็นใน milliseconds
public static readonly UnitType Ms
หมายเลข
Pc
การวัดอยู่ใน Picas
public static readonly UnitType Pc
หมายเลข
Percentage
การวัดเป็นส่วนหนึ่ง
public static readonly UnitType Percentage
หมายเลข
Pt
การวัดอยู่ในจุด
public static readonly UnitType Pt
หมายเลข
Px
การวัดอยู่ใน pixels
public static readonly UnitType Px
หมายเลข
Q
การวัดเป็นมิลลิเมตรสี่เหลี่ยม
public static readonly UnitType Q
หมายเลข
Rad
การวัดอยู่ในรังสี
public static readonly UnitType Rad
หมายเลข
Real
การวัดเป็นหมายเลขจริง
public static readonly UnitType Real
หมายเลข
Rem
การวัดมีความสัมพันธ์กับขนาด font ขององค์ประกอบราก
public static readonly UnitType Rem
หมายเลข
S
การวัดเป็นในวินาที
public static readonly UnitType S
หมายเลข
Turn
การวัดอยู่ในหมุน
public static readonly UnitType Turn
หมายเลข
Vh
การวัดมีความสัมพันธ์กับ 1% ของความสูงของพอร์ตการมองเห็น* ลอง
public static readonly UnitType Vh
หมายเลข
Vmax
การวัดมีความสัมพันธ์กับ 1% ของขนาดที่ใหญ่กว่าของพอร์ตดู* ลอง
public static readonly UnitType Vmax
หมายเลข
Vmin
การวัดมีความสัมพันธ์กับ 1% ของขนาดขนาดเล็กของพอร์ตมองเห็น* ลอง
public static readonly UnitType Vmin
หมายเลข
Vw
การวัดมีความสัมพันธ์กับ 1% ของความกว้างของพอร์ตมองเห็น*
public static readonly UnitType Vw
หมายเลข
Methods
Equals(วัตถุ)
กําหนดว่า System.Object ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public override bool Equals(object obj)
Parameters
obj
object
ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
Equals(UnitType)
กําหนดว่า Aspose.Html.Drawing.UnitType ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public bool Equals(UnitType other)
Parameters
other
UnitType
The Aspose.Html.Drawing.UnitType เพื่อเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้า Aspose.Html.Drawing.UnitType ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
GetHashCode()
กลับรหัส hash สําหรับตัวอย่างนี้
public override int GetHashCode()
Returns
รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash
ToString()
กลับ System.String ที่แสดงตัวอย่างนี้
public override string ToString()
Returns
ระบบ String ซึ่งเป็นตัวแทนของ instance นี้
Operators
ผู้ประกอบการ =(หน่วยประเภท, หน่วยประเภท)
กําหนดว่าสองค่า Aspose.Html.Drawing.UnitType ที่ระบุคือเท่าเทียมกันหรือไม่
public static bool operator ==(UnitType first, UnitType second)
Parameters
first
UnitType
ค่าใช้จ่าย Aspose.Html.Drawing.UnitType เป็นครั้งแรกที่จะเปรียบเทียบ
second
UnitType
ค่าที่สอง Aspose.Html.Drawing.UnitType เพื่อเปรียบเทียบ
Returns
‘จริง’ ถ้าทั้งสอง Aspose.Html.Drawing.UnitType เป็นเท่าเทียมกัน อย่างไรก็ตาม ‘ผิด’
ผู้ประกอบการที่ชัดเจน string(UnitType)
ทําการแปลงอย่างชัดเจนจาก Aspose.Html.Drawing.UnitType ไปยัง System.String
public static explicit operator string(UnitType value)
Parameters
value
UnitType
ค่าใช้จ่าย
Returns
ผลของการแปลง
ผู้ประกอบการแบบ implicit UnitType(รั้ว)
ทําการแปลงจาก System.String ไปยัง Aspose.Html.Drawing.UnitType
public static implicit operator UnitType(string value)
Parameters
value
string
ค่าใช้จ่าย
Returns
ผลของการแปลง
ผู้ประกอบการ !=(หน่วยประเภท, หน่วยประเภท)
กําหนดว่าสองค่าที่ระบุ Aspose.Html.Drawing.UnitType ไม่เหมือนกันหรือไม่
public static bool operator !=(UnitType first, UnitType second)
Parameters
first
UnitType
ค่าใช้จ่าย Aspose.Html.Drawing.UnitType เป็นครั้งแรกที่จะเปรียบเทียบ
second
UnitType
ค่าที่สอง Aspose.Html.Drawing.UnitType เพื่อเปรียบเทียบ
Returns
‘จริง’ ถ้าทั้งสอง Aspose.Html.Drawing.UnitType ไม่เหมือนกัน อย่างไรก็ตาม ‘ผิด’.