Class UnitType
ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.5.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 ไม่เหมือนกัน อย่างไรก็ตาม ‘ผิด’.