# LengthUnit struct

Namespace: [Rhino](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md) · Since v9.0

```cs
[DebuggerDisplay("{DebuggerDisplay, nq}")]
public readonly struct LengthUnit : IEquatable<LengthUnit>, IComparable<LengthUnit>
```

Represents a length unit.

## Fields

- [Centimeters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/centimeters.md): (static) 1 millimeter = 1.0e-2 meters
- [Feet](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/feet.md): (static) 1 foot = 0.3048 meters = 12 inches
- [Inches](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/inches.md): (static) 1 inch = 0.0254 meters = 1/12 foot
- [Kilometers](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/kilometers.md): (static) 1 kilometer = 1.0e+3 meters
- [Meters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/meters.md): (static) SI meter length unit
- [Miles](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/miles.md): (static) 1 yard = 1609.344 meters = 5280 feet
- [Millimeters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/millimeters.md): (static) 1 millimeter = 1.0e-3 meters
- [None](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/none.md): (static) No unit
- [Unset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/unset.md): (static) Unset unit
- [Yards](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/yards.md): (static) 1 yard = 0.9144 meters = 3 feet

## Properties

- [DisplayName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/displayname.md): Upper case plural localized unit name.
- [DisplaySymbol](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/displaysymbol.md): Lower case singular localized unit symbol.
- [Name](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/name.md): Non localized lower case plural unit name.
- [Symbol](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/symbol.md): Non localized unit symbol string.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/compareto.md): 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.
- [Equals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/equals.md): (2 overloads) Indicates whether the current object is equal to another object of the same type.
- [FromCustomUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/fromcustomunitsystem.md): (static) Creates a custom [LengthUnit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit.md) based on its size expressed on a known [UnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.unitsystem.md).
- [FromKnownUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/fromknownunitsystem.md): (static) Constructs a [LengthUnit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit.md) from a [UnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.unitsystem.md).
- [GetHashCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/gethashcode.md): Returns the hash code for this instance.
- [IsCustom](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/iscustom.md): (static) Determines whether the specified value is a custom unit.
- [IsKnownLengthUnit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/isknownlengthunit.md): (static) Determines whether the provided value is a known unit system.
- [IsKnownUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/isknownunitsystem.md): Determines whether the instance value is a known unit system.
- [IsNone](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/isnone.md): (static) Determines whether the specified value is None.
- [IsUnset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/isunset.md): (static) Determines whether the specified value is Unset.
- [Scale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/scale.md): (static) Computes the scale factor for changing a measurement on different units.
- [Size](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/size.md): Returns the size of this unit expressed on a different length unit.
- [ToUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/tounitsystem.md): (2 overloads) Returns a [UnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.unitsystem.md) equivalent to this instance and its size expressed on meters.

## Operators

- [operator ==](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-equality.md): (static) Equality operator.
- [operator >](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-greaterthan.md): (static) Greater than operator.
- [operator >=](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-greaterthanorequal.md): (static) Greater than or equal operator.
- [operator !=](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-inequality.md): (static) Inequality operator.
- [operator <](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-lessthan.md): (static) Less than operator.
- [operator <=](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthunit/op-lessthanorequal.md): (static) Less than or equal operator.
