IRelative |
public interface IRelativeUnit : IUnit
The IRelativeUnit type exposes the following members.
| Name | Description | |
|---|---|---|
| Name | Full name of the unit. (Inherited from IUnit) | |
| Prefixes |
Returns a list of possible prefixes for this unit (like µ, m, k, M, G..).
(Inherited from IUnit) | |
| ReferenceQuantity | The corresponding quantity that this unit encapsulates. | |
| ShortCut | Usual shortcut of the unit. (Inherited from IUnit) | |
| SIUnit |
Returns the corresponding SI unit.
(Inherited from IUnit) |
| Name | Description | |
|---|---|---|
| FromSIUnit |
Converts x (in SI units) to the corresponding value in this unit.
(Inherited from IUnit) | |
| GetRelativeValueFromValue | 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'. | |
| ToSIUnit |
Converts x to the corresponding SI unit.
(Inherited from IUnit) |