UnitWithLimitedPrefixes Type

Encapsulates an existing unit, but limits the set of possible prefixes.

Constructors

Constructor Description

UnitWithLimitedPrefixes(unit, allowedPrefixes)

Full Usage: UnitWithLimitedPrefixes(unit, allowedPrefixes)

Parameters:

unit : IUnit
allowedPrefixes : IEnumerable<SIPrefix>

Instance members

Instance member Description

this.FromSIUnit

Full Usage: this.FromSIUnit

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Name

Full Usage: this.Name

Returns: string
Modifiers: abstract

Returns: string

this.Prefixes

Full Usage: this.Prefixes

Returns: ISIPrefixList
Modifiers: abstract

Returns a list of possible prefixes for this unit (like ยต, m, k, M, G..).

Returns: ISIPrefixList

this.SIUnit

Full Usage: this.SIUnit

Returns: SIUnit
Modifiers: abstract

Returns the underlying unit, transformed to the corresponding SI unit.

Returns: SIUnit

this.ShortCut

Full Usage: this.ShortCut

Returns: string
Modifiers: abstract

Returns: string

this.ToSIUnit

Full Usage: this.ToSIUnit

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Unit

Full Usage: this.Unit

Returns: IUnit

Gets the underlying unit.

Returns: IUnit