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.3572.0 (4.8.3572.0)
Syntax
C#
public bool TryGetPrefixedUnitFromShortcut(
	string shortCut,
	out IPrefixedUnit result
)

Parameters

shortCut  String
The shortcut. It can be a compound of prefix and unit, for example mA. An empty string is converted to Instance.
result  IPrefixedUnit
If successful, the resulting prefixed unit.

Return Value

Boolean
true if the conversion was successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionshortCut is null.
See Also