Click or drag to resize

QuantityWithUnitGuiEnvironment Class

Provides possible units that will be recognized when entering a quantity with a unit in Gui elements. This class is designed to fast making clones of it, where the fixed units are shared among the clones, and the additional units can be set freely in each clone.
Inheritance Hierarchy
SystemObject
  Altaxo.GuiQuantityWithUnitGuiEnvironment

Namespace: Altaxo.Gui
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class QuantityWithUnitGuiEnvironment

The QuantityWithUnitGuiEnvironment type exposes the following members.

Constructors
 NameDescription
Public methodQuantityWithUnitGuiEnvironmentInitializes a new instance of the QuantityWithUnitGuiEnvironment class
Public methodQuantityWithUnitGuiEnvironment(IEnumerableIUnit)Initializes a new instance of the QuantityWithUnitGuiEnvironment class
Public methodQuantityWithUnitGuiEnvironment(IEnumerableIUnit, IUnit)Initializes a new instance of the QuantityWithUnitGuiEnvironment class
Public methodQuantityWithUnitGuiEnvironment(IEnumerableIUnit, IEnumerableIUnit)Initializes a new instance of the QuantityWithUnitGuiEnvironment class
Public methodQuantityWithUnitGuiEnvironment(QuantityWithUnitGuiEnvironment, IEnumerableIUnit)Initializes a new instance of the QuantityWithUnitGuiEnvironment class
Top
Properties
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnDefaultUnitChanged 
Protected methodOnNumberOfDisplayedDigitsChanged 
Public methodStatic memberRegisterEnvironment 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberTryGetEnvironment 
Public methodTryGetPrefixedUnitFromShortcut Tries to get a prefixed unit from a shortcut, considering all units in this environment.
Top
Events
 NameDescription
Public eventDefaultUnitChanged Triggered when the default unit that is displayed in Gui boxes changed.
Public eventNumberOfDisplayedDigitsChanged Triggered when the number of digits that should be displayed (in Gui boxes) changed.
Top
See Also