Click or drag to resize

ChangeableRelativeUnit Class

This unit refers to a reference quantity. Since the reference quantity can be changed, instances of this class are not immutable. Example: 'percent of page width': here the page width can change depending on the user defined settings.
Inheritance Hierarchy
SystemObject
  Altaxo.UnitsChangeableRelativeUnit
    Altaxo.UnitsChangeableRelativePercentUnit

Namespace: Altaxo.Units
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class ChangeableRelativeUnit : IRelativeUnit, 
	IUnit

The ChangeableRelativeUnit type exposes the following members.

Constructors
 NameDescription
Public methodChangeableRelativeUnitInitializes a new instance of the ChangeableRelativeUnit class.
Top
Properties
 NameDescription
Public propertyNameFull name of the unit.
Public propertyPrefixesReturns a list of possible prefixes for this unit (like µ, m, k, M, G..).
Public propertyReferenceQuantityThe corresponding quantity that this unit encapsulates.
Public propertyShortCutUsual shortcut of the unit.
Public propertySIUnitReturns the corresponding SI unit.
Top
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 methodFromSIUnitConverts x (in SI units) to the corresponding value in this unit.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetRelativeValueFromValue Calculated the dimensionless prefactor to multiply the ReferenceQuantity with. Example: Given that the relative unit is 'percent of page with', a value of x=5 is converted to 0.05. The result can then be used to calculate the absolute quantity by multiplying the result of 0.05 with the 'page with'.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToSIUnitConverts x to the corresponding SI unit.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected field_divider 
Top
See Also