# LengthValue class

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

```cs
public sealed class LengthValue : IDisposable
```

Represents a length with an associated unit system and a string representation of that length. This allows for going back and forth from numerical representation of a length and a string representation without "guessing" at the initial string

## Finalizer

- [~LengthValue](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/finalize.md): passively reclaim native allocated ON_LengthValue*

## Properties

- [ContextAngleUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/contextangleunitsystem.md): Returns the context AngleUnitSystem from this LengthValue's ParseSettings
- [ContextLocaleId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/contextlocaleid.md): returns the context LocaleId from this LengthValue
- [LengthString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/lengthstring.md): Return length as a string
- [LengthStringFormat](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/lengthstringformat.md): Returns the StringFormat from this LengthValue
- [ParseSettings](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/parsesettings.md): Parse settings
- [Units](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/units.md): LengthUnit used by this LengthValue
- [UnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/unitsystem.md): UnitSystem used by this LengthValue

## Methods

- [ChangeLength](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/changelength.md): Changes the numeric value in a LengthValue and leaves all of the other info unchanged UnitSystem, ParseSettings and StringFormat stay as they were
- [ChangeUnits](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/changeunits.md): Change the UnitSystem of a LengthValue The numeric value of Length is scaled by new_us / current unit system so that the absolute length stays the same
- [ChangeUnitSystem](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/changeunitsystem.md): Change the UnitSystem of a LengthValue The numeric value of Length is scaled by new_us / current unit system so that the absolute length stays the same
- [Create](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/create.md): (5 overloads, static) Create from Length and LengthUnit
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/dispose.md): actively reclaim native allocated ON_LengthValue*
- [IsUnset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/isunset.md): Test IsUnset
- [Length](https://developer.rhino3d.com/api/rhinocommon/type/rhino.lengthvalue/length.md): (3 overloads) Length value in this instance's current unit system
