QuantityWithUnitGuiEnvironmentTryGetPrefixedUnitFromShortcut Method |
Tries to get a prefixed unit from a shortcut, considering all units in this environment.
Namespace: Altaxo.GuiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
BooleanTrue if the conversion was successful; false otherwise.
Exceptions See Also