Length Class

Length class

Represents a length measurement unit.

public sealed class Length : Dimension

Properties

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

Methods

NameDescription
CompareTo(Numeric)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
override Equals(object)Determines whether the specified Object, is equal to this instance.
override Equals(Unit)Determines whether the specified Unit, is equal to this instance.
override GetHashCode()Returns a hash code for this instance.
GetValue()Gets the unit value.
GetValue(UnitType)Gets the value converted to the specified UnitType.
override ToString()Returns a String that represents this instance.
operator +
operator ==
operator >
operator >=
operator !=
operator <
operator <=
operator -

See Also