UnitType

UnitType class

指定测量单位。

public sealed class UnitType : IEquatable<UnitType>

方法

姓名描述
override Equals(object)判断是否指定Object 等于这个实例。
Equals(UnitType)判断是否指定UnitType 等于这个实例。
override GetHashCode()返回此实例的哈希码。
override ToString()返回一个String代表这个实例。
operator ==判断两个是否指定UnitType值相等。
explicit operator执行显式转换UnitType至String .
implicit operator从String至UnitType .
operator !=判断两个是否指定UnitType值不相等。

字段

姓名描述
static readonly Auto测量未定义。
static readonly Ch测量是相对于“0”(零)的宽度。
static readonly Cm测量单位为厘米
static readonly Deg测量以度为单位。
static readonly Dpcm以每厘米点数为单位。
static readonly Dpi以每英寸点数为单位。
static readonly Dppx测量单位为每像素点数。
static readonly Em测量是相对于父元素字体的高度。
static readonly Ex测量是相对于父元素字体的小写字母 x 的高度。
static readonly Grad测量以梯度为单位。
static readonly Hz测量单位为赫兹。
static readonly In测量单位为英寸
static readonly Integer测量值是一个整数。
static readonly KHz测量单位为千赫兹。
static readonly Mm测量单位为毫米
static readonly Ms测量以毫秒为单位。
static readonly Pc测量单位为 picas
static readonly Percentage测量以百分比表示。
static readonly Pt测量以点为单位
static readonly Px测量以像素为单位
static readonly Q测量单位为四分之一毫米
static readonly Rad测量以弧度为单位。
static readonly Real测量值是一个实数。
static readonly Rem尺寸与根元素的字体大小相关。
static readonly S测量以秒为单位。
static readonly Turn轮流测量。
static readonly Vh测量是相对于视口高度的 1%* 试试看
static readonly Vmax测量是相对于视口* 较大尺寸的 1% 试试看
static readonly Vmin测量是相对于视口* 较小尺寸的 1% 试试看
static readonly Vw测量是相对于视口宽度的 1%*

也可以看看