Click or drag to resize

UnitDescriptionAttribute Class

Describes the dimensionality and quantity name for a unit class. Attach this attribute to unit classes to provide a human-readable quantity description (for example "Length" or "Temperature") and the exponents of the seven SI base units (metre, kilogram, second, ampere, kelvin, mole, candela) that define the unit's dimension.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Altaxo.UnitsUnitDescriptionAttribute

Namespace: Altaxo.Units
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public class UnitDescriptionAttribute : Attribute

The UnitDescriptionAttribute type exposes the following members.

Constructors
 NameDescription
Public methodUnitDescriptionAttribute Initializes a new instance of the UnitDescriptionAttribute class.
Top
Properties
 NameDescription
Public propertyAmpere Power of 'Ampere' units that the constructed unit will contain.
Public propertyCandela Power of 'Candela' units that the constructed unit will contain.
Public propertyKelvin Power of 'Kelvin' units that the constructed unit will contain.
Public propertyKilogram Power of 'Kilogram' units that the constructed unit will contain.
Public propertyMetre Power of 'Metre' units that the constructed unit will contain.
Public propertyMole Power of 'Mole' units that the constructed unit will contain.
Public propertyQuantity The quantity description. Examples are Length, Temperature, Mass, Time, ElectricalVoltage, ElectricalCurrent, Force, etc.
Public propertySecond Power of 'Second' units that the constructed unit will contain.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
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 methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also