Unit Class

Unit class

Provides the base class for units of measurement.

public abstract class Unit : IEquatable<Unit>

Properties

NameDescription
UnitType { get; }Gets the unit type of the Unit.

Methods

NameDescription
override Equals(object)Determines whether the specified Object, is equal to this instance.
virtual Equals(Unit)Determines whether the specified Unit, is equal to this instance.
override GetHashCode()Returns a hash code for this instance.
override ToString()Returns a String that represents this instance.
static FromCentimeters(double)Returns a Length object that is represented in centimeters.
static FromDegrees(double)Returns a Angle object that is represented in degrees.
static FromDotsPerCentimeters(double)Returns a Resolution object that is represented in dots per centimeters.
static FromDotsPerInch(double)Returns a Resolution object that is represented in dots per inch.
static FromDotsPerPixel(double)Returns a Resolution object that is represented in dots per pixels.
static FromGradians(double)Returns a Angle object that is represented in gradians.
static FromHertz(double)Returns a Frequency object that is represented in hertz.
static FromInches(double)Returns a Length object that is represented in inches.
static FromKiloHertz(double)Returns a Frequency object that is represented in kiloHertz.
static FromMillimeters(double)Returns a Length object that is represented in millimeters.
static FromMilliseconds(double)Returns a Time object that is represented in milliseconds.
static FromPicas(double)Returns a Length object that is represented in picas.
static FromPixels(double)Returns a Length object that is represented in pixels.
static FromPoints(double)Returns a Length object that is represented in points.
static FromQuarterMillimeters(double)Returns a Length object that is represented in quarter-millimeters.
static FromRadians(double)Returns a Angle object that is represented in radians.
static FromSeconds(double)Returns a Time object that is represented in seconds.
static FromTurns(double)Returns a Angle object that is represented in turns.

See Also