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.3572.0 (4.8.3572.0)
Syntaxpublic 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
Booleantrue if the conversion was successful; otherwise,
false.
Exceptions
See Also