Click or drag to resize

Length Methods

The Length type exposes the following members.

Methods
  NameDescription
Public methodCompareTo
Compares the value of this instance to a specified Length value and returns an integer that indicates whether this instance is less than, equal to, or greater than the specified Length value.
Public methodEquals(Object)
Determines whether the specified Object is equal to this Length instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Length)
Determines whether the other Length is equal to this Length instance.
Public methodStatic memberFrom
Converts a length value in a specified measurement unit to a Length instance.
Public methodGetHashCode
Returns a hash code for this Length instance.
(Overrides ValueTypeGetHashCode.)
Public methodTo
Converts this Length instance to a length value in a specified measurement unit.
Public methodToString
Returns a String that represents this Length instance in a default measurement unit.
(Overrides ValueTypeToString.)
Public methodToString(LengthUnit)
Returns a String that represents this Length instance in a specified measurement unit.
Public methodToString(String, IFormatProvider)
Returns a String that represents this Length instance in a specified format and a default measurement unit by using a specified format provider.
Public methodToString(String, IFormatProvider, LengthUnit)
Returns a String that represents this Length instance in a specified format and a measurement unit by using a specified format provider.
Top
See Also