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

测量在格拉迪安。

public static readonly UnitType Grad

领域价值

UnitType

Hz

测量在赫尔茨。

public static readonly UnitType Hz

领域价值

UnitType

In

测量在英寸

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

测量在千秒内。

public static readonly UnitType Ms

领域价值

UnitType

Pc

测量在皮卡

public static readonly UnitType Pc

领域价值

UnitType

Percentage

测量是百分比。

public static readonly UnitType Percentage

领域价值

UnitType

Pt

测量在点

public static readonly UnitType Pt

领域价值

UnitType

Px

测量在像素中

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

测量与根元素的字体大小相对。

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

该 Aspose.Html.Drawing.UnitType 与此例子进行比较。

Returns

bool

“真实”如果指定的 Aspose.Html.Drawing.UnitType 与此例相同;否则,“虚假”。

GetHashCode()

返回此例的Hash代码。

public override int GetHashCode()

Returns

int

此例的哈希代码,适合在哈希算法和数据结构中使用,如哈希表。

ToString()

返回一个 System.String 代表此例子。

public override string ToString()

Returns

string

一个系统.String 代表这个实例。

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

转换的结果。

暗示操作器 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 並不相同;否則,「假」。

 中文