GUIConversionGetLengthMeasureValue(String, LengthUnit, Double) Method |
Get a length value from a text string.
Namespace: Altaxo.SerializationAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static bool GetLengthMeasureValue(
string txt,
ref LengthUnit unit,
ref double value
)
Parameters
- txt String
- Text string. Consists of a number and optionally a unit.
- unit LengthUnit
- Gives the default unit to use if the text string don't contain a unit.
On return, contains the unit actually used.
- value Double
- On return, gives the actual length (unit:points).
Return Value
BooleanTrue if the conversion was successful, false otherwise.
See Also