Class UnitType
Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.7.0)
Specifies the unit of measurement.
[ComVisible(true)]
public sealed class UnitType : IEquatable<unittype>Inheritance
Implements
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Fields
Auto
Measurement is not defined.
public static readonly UnitType AutoField Value
Ch
Measurement is relative to width of the “0” (zero).
public static readonly UnitType ChField Value
Cm
Measurement is in centimeters
public static readonly UnitType CmField Value
Deg
Measurement is in degrees.
public static readonly UnitType DegField Value
Dpcm
Measurement is in dots per centimeters.
public static readonly UnitType DpcmField Value
Dpi
Measurement is in dots per inch.
public static readonly UnitType DpiField Value
Dppx
Measurement is in Dots per pixels unit.
public static readonly UnitType DppxField Value
Em
Measurement is relative to the height of the parent element’s font.
public static readonly UnitType EmField Value
Ex
Measurement is relative to the height of the lowercase letter x of the parent element’s font.
public static readonly UnitType ExField Value
Grad
Measurement is in gradians.
public static readonly UnitType GradField Value
Hz
Measurement is in hertz.
public static readonly UnitType HzField Value
In
Measurement is in inches
public static readonly UnitType InField Value
Integer
Measurement is an integer number.
public static readonly UnitType IntegerField Value
KHz
Measurement is in kiloHertz.
public static readonly UnitType KHzField Value
Mm
Measurement is in millimeters
public static readonly UnitType MmField Value
Ms
Measurement is in milliseconds.
public static readonly UnitType MsField Value
Pc
Measurement is in picas
public static readonly UnitType PcField Value
Percentage
Measurement is in percentage.
public static readonly UnitType PercentageField Value
Pt
Measurement is in points
public static readonly UnitType PtField Value
Px
Measurement is in pixels
public static readonly UnitType PxField Value
Q
Measurement is in quarter-millimeters
public static readonly UnitType QField Value
Rad
Measurement is in radians.
public static readonly UnitType RadField Value
Real
Measurement is a real number.
public static readonly UnitType RealField Value
Rem
Measurement is relative to font-size of the root element.
public static readonly UnitType RemField Value
S
Measurement is in seconds.
public static readonly UnitType SField Value
Turn
Measurement is in turns.
public static readonly UnitType TurnField Value
Vh
Measurement is relative to 1% of the height of the viewport* Try it
public static readonly UnitType VhField Value
Vmax
Measurement is relative to 1% of viewport’s* larger dimension Try it
public static readonly UnitType VmaxField Value
Vmin
Measurement is relative to 1% of viewport’s* smaller dimension Try it
public static readonly UnitType VminField Value
Vw
Measurement is relative to 1% of the width of the viewport*
public static readonly UnitType VwField Value
Methods
Equals(object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object obj)Parameters
obj object
The System.Object to compare with this instance.
Returns
true if the specified System.Object is equal to this instance; otherwise, false.
Equals(UnitType)
Determines whether the specified Aspose.Html.Drawing.UnitType, is equal to this instance.
public bool Equals(UnitType other)Parameters
other UnitType
The Aspose.Html.Drawing.UnitType to compare with this instance.
Returns
true if the specified Aspose.Html.Drawing.UnitType is equal to this instance; otherwise, false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToString()
Returns a System.String that represents this instance.
public override string ToString()Returns
A System.String that represents this instance.
Operators
operator ==(UnitType, UnitType)
Determines whether the two specified Aspose.Html.Drawing.UnitType values are equal.
public static bool operator ==(UnitType first, UnitType second)Parameters
first UnitType
The first Aspose.Html.Drawing.UnitType value to compare.
second UnitType
The second Aspose.Html.Drawing.UnitType value to compare.
Returns
true if the both Aspose.Html.Drawing.UnitType are equal; otherwise, false.
explicit operator string(UnitType)
Performs an explicit conversion from Aspose.Html.Drawing.UnitType to System.String.
public static explicit operator string(UnitType value)Parameters
value UnitType
The value.
Returns
The result of the conversion.
implicit operator UnitType(string)
Performs an implicit conversion from System.String to Aspose.Html.Drawing.UnitType.
public static implicit operator UnitType(string value)Parameters
value string
The value.
Returns
The result of the conversion.
operator !=(UnitType, UnitType)
Determines whether the two specified Aspose.Html.Drawing.UnitType values are not equal.
public static bool operator !=(UnitType first, UnitType second)Parameters
first UnitType
The first Aspose.Html.Drawing.UnitType value to compare.
second UnitType
The second Aspose.Html.Drawing.UnitType value to compare.
Returns
true if the both Aspose.Html.Drawing.UnitType are not equal; otherwise, false.
</unittype>