Click or drag to resize

GUIConversionGetLengthMeasureValue(String, LengthUnit, Double) Method

Get a length value from a text string.

Namespace: Altaxo.Serialization
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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

Boolean
True if the conversion was successful, false otherwise.
See Also