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
测量在格拉迪安。
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 並不相同;否則,「假」。