Class UnitType

Class UnitType

ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.0)

รายละเอียดหน่วยการวัด

[ComVisible(true)]
public sealed class UnitType : IEquatable<unittype>

Inheritance

object UnitType

Implements

IEquatable

อนุญาโตตุลาการ

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Fields

Auto

การวัดไม่ได้กําหนด

public static readonly UnitType Auto

หมายเลข

UnitType

Ch

การวัดมีความสัมพันธ์กับความกว้างของ “0” (ゼロ)

public static readonly UnitType Ch

หมายเลข

UnitType

Cm

การวัดเป็นเซนติเมตร

public static readonly UnitType Cm

หมายเลข

UnitType

Deg

การวัดอยู่ในระดับ

public static readonly UnitType Deg

หมายเลข

UnitType

Dpcm

การวัดเป็นจุดต่อเซนติเมตร

public static readonly UnitType Dpcm

หมายเลข

UnitType

Dpi

การวัดเป็นจุดต่อ นิ้ว

public static readonly UnitType Dpi

หมายเลข

UnitType

Dppx

การวัดจะอยู่ในจุดต่อหน่วยพิกเซล

public static readonly UnitType Dppx

หมายเลข

UnitType

Em

การวัดมีความสัมพันธ์กับความสูงของตัวอักษรขององค์ประกอบแม่

public static readonly UnitType Em

หมายเลข

UnitType

Ex

การวัดมีความสัมพันธ์กับความสูงของตัวอักษรด้านล่างของตัวอักษร x ของตัวอักษรขององค์ประกอบแม่

public static readonly UnitType Ex

หมายเลข

UnitType

Grad

การวัดอยู่ใน gradians

public static readonly UnitType Grad

หมายเลข

UnitType

Hz

การวัดได้ใน hertz

public static readonly UnitType Hz

หมายเลข

UnitType

In

การวัดเป็น inches

public static readonly UnitType In

หมายเลข

UnitType

Integer

การวัดเป็นจํานวนที่สมบูรณ์

public static readonly UnitType Integer

หมายเลข

UnitType

KHz

การวัดเป็น kiloHertz

public static readonly UnitType KHz

หมายเลข

UnitType

Mm

การวัดเป็นมิลลิเมตร

public static readonly UnitType Mm

หมายเลข

UnitType

Ms

การวัดเป็นใน milliseconds

public static readonly UnitType Ms

หมายเลข

UnitType

Pc

การวัดอยู่ใน Picas

public static readonly UnitType Pc

หมายเลข

UnitType

Percentage

การวัดเป็นส่วนหนึ่ง

public static readonly UnitType Percentage

หมายเลข

UnitType

Pt

การวัดอยู่ในจุด

public static readonly UnitType Pt

หมายเลข

UnitType

Px

การวัดอยู่ใน pixels

public static readonly UnitType Px

หมายเลข

UnitType

Q

การวัดเป็นมิลลิเมตรสี่เหลี่ยม

public static readonly UnitType Q

หมายเลข

UnitType

Rad

การวัดอยู่ในรังสี

public static readonly UnitType Rad

หมายเลข

UnitType

Real

การวัดเป็นหมายเลขจริง

public static readonly UnitType Real

หมายเลข

UnitType

Rem

การวัดมีความสัมพันธ์กับขนาด font ขององค์ประกอบราก

public static readonly UnitType Rem

หมายเลข

UnitType

S

การวัดเป็นในวินาที

public static readonly UnitType S

หมายเลข

UnitType

Turn

การวัดอยู่ในหมุน

public static readonly UnitType Turn

หมายเลข

UnitType

Vh

การวัดมีความสัมพันธ์กับ 1% ของความสูงของพอร์ตการมองเห็น* ลอง

public static readonly UnitType Vh

หมายเลข

UnitType

Vmax

การวัดมีความสัมพันธ์กับ 1% ของขนาดที่ใหญ่กว่าของพอร์ตดู* ลอง

public static readonly UnitType Vmax

หมายเลข

UnitType

Vmin

การวัดมีความสัมพันธ์กับ 1% ของขนาดขนาดเล็กของพอร์ตมองเห็น* ลอง

public static readonly UnitType Vmin

หมายเลข

UnitType

Vw

การวัดมีความสัมพันธ์กับ 1% ของความกว้างของพอร์ตมองเห็น*

public static readonly UnitType Vw

หมายเลข

UnitType

Methods

Equals(วัตถุ)

กําหนดว่า System.Object ที่ระบุเท่ากับตัวอย่างนี้หรือไม่

public override bool Equals(object obj)

Parameters

obj object

ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้

Returns

bool

‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.

Equals(UnitType)

กําหนดว่า Aspose.Html.Drawing.UnitType ที่ระบุเท่ากับตัวอย่างนี้หรือไม่

public bool Equals(UnitType other)

Parameters

other UnitType

The Aspose.Html.Drawing.UnitType เพื่อเปรียบเทียบกับตัวอย่างนี้

Returns

bool

‘จริง’ ถ้า Aspose.Html.Drawing.UnitType ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.

GetHashCode()

กลับรหัส hash สําหรับตัวอย่างนี้

public override int GetHashCode()

Returns

int

รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash

ToString()

กลับ System.String ที่แสดงตัวอย่างนี้

public override string ToString()

Returns

string

ระบบ 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

bool

‘จริง’ ถ้าทั้งสอง Aspose.Html.Drawing.UnitType เป็นเท่าเทียมกัน อย่างไรก็ตาม ‘ผิด’

ผู้ประกอบการที่ชัดเจน string(UnitType)

ทําการแปลงอย่างชัดเจนจาก Aspose.Html.Drawing.UnitType ไปยัง System.String

public static explicit operator string(UnitType value)

Parameters

value UnitType

ค่าใช้จ่าย

Returns

string

ผลของการแปลง

ผู้ประกอบการแบบ implicit UnitType(รั้ว)

ทําการแปลงจาก System.String ไปยัง Aspose.Html.Drawing.UnitType

public static implicit operator UnitType(string value)

Parameters

value string

ค่าใช้จ่าย

Returns

UnitType

ผลของการแปลง

ผู้ประกอบการ !=(หน่วยประเภท, หน่วยประเภท)

กําหนดว่าสองค่าที่ระบุ 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

bool

‘จริง’ ถ้าทั้งสอง Aspose.Html.Drawing.UnitType ไม่เหมือนกัน อย่างไรก็ตาม ‘ผิด’.

 แบบไทย