LengthValue

References
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

#
passively reclaim native allocated ON_LengthValue*
~LengthValue()

Properties

ContextAngleUnitSystem

#Since v6.0
Returns the context AngleUnitSystem from this LengthValue's ParseSettings
public AngleUnitSystem ContextAngleUnitSystem { get; }

ContextLocaleId

#Since v6.0
returns the context LocaleId from this LengthValue
[CLSCompliant(false)] public uint ContextLocaleId { get; }

LengthString

#Since v6.0
Return length as a string
public string LengthString { get; }

LengthStringFormat

#Since v6.0
Returns the StringFormat from this LengthValue
public LengthValue.StringFormat LengthStringFormat { get; }

ParseSettings

#Since v6.0
Parse settings
public StringParserSettings ParseSettings { get; }

Units

#Since v9.0
LengthUnit used by this LengthValue
public LengthUnit Units { get; }

UnitSystem

#Since v6.0
UnitSystem used by this LengthValue
public UnitSystem UnitSystem { get; }

Methods

ChangeLength

#Since v6.0
Changes the numeric value in a LengthValue and leaves all of the other info unchanged UnitSystem, ParseSettings and StringFormat stay as they were
public LengthValue ChangeLength(
newLength
)
A new LengthValue

ChangeUnits

#Since v9.0
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
public LengthValue ChangeUnits(
newUnits
)

ChangeUnitSystem

#Since v6.0
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
public LengthValue ChangeUnitSystem(
newUnits
)

Create

#Since v9.0
Create from Length and LengthUnit
[CLSCompliant(false)] public static LengthValue Create(
length,
Numeric length value
units,
Length units
format,
localeId
)

Create

#Since v9.0
Create from Length and LengthUnit
[CLSCompliant(false)] public static LengthValue Create(
length,
Numeric length value
units,
Length units
format
)

Create

#Since v6.0
Create from Length and UnitSystem
[CLSCompliant(false)] public static LengthValue Create(
length,
Numeric length value
us,
Unit system
format,
localeId
)

Create

#Since v6.0
Create from Length and UnitSystem
public static LengthValue Create(
length,
Numeric length value
us,
Unit system
format
)

Create

#Since v6.0
Create from string
public static LengthValue Create(
s,
string to parse
ps,
out bool
parsedAll
true if the whole string was parsed
)

Dispose

#Since v6.0
actively reclaim native allocated ON_LengthValue*
public void Dispose()

IsUnset

#Since v6.0
Test IsUnset
public bool IsUnset()

Length

#Since v6.0
Length value in this instance's current unit system
public double Length()

Length

#Since v9.0
Length value in a given unit system
public double Length()

Length

#Since v6.0
Length value in a given unit system
public double Length()