Unit Class
Provides the base class for units of measurement.
Inheritance Hierarchy

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

The Unit type exposes the following members.

Constructors
  NameDescription
Protected methodUnit
Initializes a new instance of the Unit class.
Properties
  NameDescription
Public propertyUnitType
Gets the unit type of the Unit.
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(Unit)
Determines whether the specified Unit, is equal to this instance.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromCentimeters
Returns a Length object that is represented in centimeters.
Public methodStatic memberFromDegrees
Returns a Angle object that is represented in degrees.
Public methodStatic memberFromDotsPerCentimeters
Returns a Resolution object that is represented in dots per centimeters.
Public methodStatic memberFromDotsPerInch
Returns a Resolution object that is represented in dots per inch.
Public methodStatic memberFromDotsPerPixel
Returns a Resolution object that is represented in dots per pixels.
Public methodStatic memberFromGradians
Returns a Angle object that is represented in gradians.
Public methodStatic memberFromHertz
Returns a Frequency object that is represented in hertz.
Public methodStatic memberFromInches
Returns a Length object that is represented in inches.
Public methodStatic memberFromKiloHertz
Returns a Frequency object that is represented in kiloHertz.
Public methodStatic memberFromMillimeters
Returns a Length object that is represented in millimeters.
Public methodStatic memberFromMilliseconds
Returns a Time object that is represented in milliseconds.
Public methodStatic memberFromPicas
Returns a Length object that is represented in picas.
Public methodStatic memberFromPixels
Returns a Length object that is represented in pixels.
Public methodStatic memberFromPoints
Returns a Length object that is represented in points.
Public methodStatic memberFromQuarterMillimeters
Returns a Length object that is represented in quarter-millimeters.
Public methodStatic memberFromRadians
Returns a Angle object that is represented in radians.
Public methodStatic memberFromSeconds
Returns a Time object that is represented in seconds.
Public methodStatic memberFromTurns
Returns a Angle object that is represented in turns.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
See Also