Click or drag to resize

QuantityWithUnitGuiEnvironmentTryGetPrefixedUnitFromShortcut Method

Tries to get a prefixed unit from a shortcut, considering all units in this environment.

Namespace: Altaxo.Gui
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryGetPrefixedUnitFromShortcut(
	string shortCut,
	out IPrefixedUnit result
)

Parameters

shortCut  String
The shortcut. Can be a compound of prefix and unit, e.g. 'mA'. An empty string is converted to Instance
result  IPrefixedUnit
If successfully, the resulting prefixed unit.

Return Value

Boolean
True if the conversion was successful; false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptions
See Also