UnitType Class
Specifies the unit of measurement.
Inheritance Hierarchy
SystemObject
  Aspose.Html.DrawingUnitType

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.9
Syntax
public sealed class UnitType : IEquatable<UnitType>

The UnitType type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(UnitType)
Determines whether the specified UnitType, is equal to this instance.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether the two specified UnitType values are equal.
Public operatorStatic member(UnitType to String)
Performs an explicit conversion from UnitType to String.
Public operatorStatic member(String to UnitType)
Performs an implicit conversion from String to UnitType.
Public operatorStatic memberInequality
Determines whether the two specified UnitType values are not equal.
Fields
  NameDescription
Public fieldStatic memberAuto
Measurement is not defined.
Public fieldStatic memberCh
Measurement is relative to width of the "0" (zero).
Public fieldStatic memberCm
Measurement is in centimeters
Public fieldStatic memberDeg
Measurement is in degrees.
Public fieldStatic memberDpcm
Measurement is in dots per centimeters.
Public fieldStatic memberDpi
Measurement is in dots per inch.
Public fieldStatic memberDppx
Measurement is in Dots per pixels unit.
Public fieldStatic memberEm
Measurement is relative to the height of the parent element's font.
Public fieldStatic memberEx
Measurement is relative to the height of the lowercase letter x of the parent element's font.
Public fieldStatic memberGrad
Measurement is in gradians.
Public fieldStatic memberHz
Measurement is in hertz.
Public fieldStatic memberIn
Measurement is in inches
Public fieldStatic memberInteger
Measurement is an integer number.
Public fieldStatic memberKHz
Measurement is in kiloHertz.
Public fieldStatic memberMm
Measurement is in millimeters
Public fieldStatic memberMs
Measurement is in milliseconds.
Public fieldStatic memberPc
Measurement is in picas
Public fieldStatic memberPercentage
Measurement is in percentage.
Public fieldStatic memberPt
Measurement is in points
Public fieldStatic memberPx
Measurement is in pixels
Public fieldStatic memberQ
Measurement is in quarter-millimeters
Public fieldStatic memberRad
Measurement is in radians.
Public fieldStatic memberReal
Measurement is a real number.
Public fieldStatic memberRem
Measurement is relative to font-size of the root element.
Public fieldStatic memberS
Measurement is in seconds.
Public fieldStatic memberTurn
Measurement is in turns.
Public fieldStatic memberVh
Measurement is relative to 1% of the height of the viewport* Try it
Public fieldStatic memberVmax
Measurement is relative to 1% of viewport's* larger dimension Try it
Public fieldStatic memberVmin
Measurement is relative to 1% of viewport's* smaller dimension Try it
Public fieldStatic memberVw
Measurement is relative to 1% of the width of the viewport*
See Also