Class UnitType
Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.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 Auto
Field Value
Ch
Measurement is relative to width of the “0” (zero).
public static readonly UnitType Ch
Field Value
Cm
Measurement is in centimeters
public static readonly UnitType Cm
Field Value
Deg
Measurement is in degrees.
public static readonly UnitType Deg
Field Value
Dpcm
Measurement is in dots per centimeters.
public static readonly UnitType Dpcm
Field Value
Dpi
Measurement is in dots per inch.
public static readonly UnitType Dpi
Field Value
Dppx
Measurement is in Dots per pixels unit.
public static readonly UnitType Dppx
Field Value
Em
Measurement is relative to the height of the parent element’s font.
public static readonly UnitType Em
Field Value
Ex
Measurement is relative to the height of the lowercase letter x of the parent element’s font.
public static readonly UnitType Ex
Field Value
Grad
Measurement is in gradians.
public static readonly UnitType Grad
Field Value
Hz
Measurement is in hertz.
public static readonly UnitType Hz
Field Value
In
Measurement is in inches
public static readonly UnitType In
Field Value
Integer
Measurement is an integer number.
public static readonly UnitType Integer
Field Value
KHz
Measurement is in kiloHertz.
public static readonly UnitType KHz
Field Value
Mm
Measurement is in millimeters
public static readonly UnitType Mm
Field Value
Ms
Measurement is in milliseconds.
public static readonly UnitType Ms
Field Value
Pc
Measurement is in picas
public static readonly UnitType Pc
Field Value
Percentage
Measurement is in percentage.
public static readonly UnitType Percentage
Field Value
Pt
Measurement is in points
public static readonly UnitType Pt
Field Value
Px
Measurement is in pixels
public static readonly UnitType Px
Field Value
Q
Measurement is in quarter-millimeters
public static readonly UnitType Q
Field Value
Rad
Measurement is in radians.
public static readonly UnitType Rad
Field Value
Real
Measurement is a real number.
public static readonly UnitType Real
Field Value
Rem
Measurement is relative to font-size of the root element.
public static readonly UnitType Rem
Field Value
S
Measurement is in seconds.
public static readonly UnitType S
Field Value
Turn
Measurement is in turns.
public static readonly UnitType Turn
Field Value
Vh
Measurement is relative to 1% of the height of the viewport* Try it
public static readonly UnitType Vh
Field Value
Vmax
Measurement is relative to 1% of viewport’s* larger dimension Try it
public static readonly UnitType Vmax
Field Value
Vmin
Measurement is relative to 1% of viewport’s* smaller dimension Try it
public static readonly UnitType Vmin
Field Value
Vw
Measurement is relative to 1% of the width of the viewport*
public static readonly UnitType Vw
Field 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>