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
测量在格拉迪安。
public static readonly UnitType Grad领域价值
Hz
测量在赫尔茨。
public static readonly UnitType Hz领域价值
In
测量在英寸
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
测量在千秒内。
public static readonly UnitType Ms领域价值
Pc
测量在皮卡
public static readonly UnitType Pc领域价值
Percentage
测量是百分比。
public static readonly UnitType Percentage领域价值
Pt
测量在点
public static readonly UnitType Pt领域价值
Px
测量在像素中
public static readonly UnitType Px领域价值
Q
测量为四分之一毫米
public static readonly UnitType Q领域价值
Rad
测量在放射线上。
public static readonly UnitType Rad领域价值
Real
测量是真实的数字。
public static readonly UnitType Real领域价值
Rem
测量与根元素的字体大小相对。
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
该 Aspose.Html.Drawing.UnitType 与此例子进行比较。
Returns
“真实”如果指定的 Aspose.Html.Drawing.UnitType 与此例相同;否则,“虚假”。
GetHashCode()
返回此例的Hash代码。
public override int GetHashCode()Returns
此例的哈希代码,适合在哈希算法和数据结构中使用,如哈希表。
ToString()
返回一个 System.String 代表此例子。
public override string ToString()Returns
一个系统.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
“真实”如果两个 Aspose.Html.Drawing.UnitType 是相同的;否则,“虚假”。
操作员 String(UnitType)
从 Aspose.Html.Drawing.UnitType 转换为 System.String。
public static explicit operator string(UnitType value)Parameters
value UnitType
它的价值。
Returns
转换的结果。
暗示操作器 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 並不相同;否則,「假」。