Back to Devexpress

PowerUnitsConverter Class

officefileapi-devexpress-dot-unitconversion-1117fec8.md

latest1.8 KB
Original Source

PowerUnitsConverter Class

Converts power measurement from one unit to another.

Namespace : DevExpress.UnitConversion

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public class PowerUnitsConverter :
    BaseUnitsConverter<Power>
vb
Public Class PowerUnitsConverter
    Inherits BaseUnitsConverter(Of Power)

The following members return PowerUnitsConverter objects:

Remarks

Use the PrefixUnitsConverter<T>.Convert method to perform the conversion.

To convert 100 horsepowers to Watts, use the following code:

csharp
double result = Units.Power.Convert(100.0f, Power.HorsePower, Power.Watt);
vb
Dim result As Double = Units.Power.Convert(100.0f, Power.HorsePower, Power.Watt)

Inheritance

Object BaseUnitsConverter<Power> PowerUnitsConverter

See Also

PowerUnitsConverter Members

Power

DevExpress.UnitConversion Namespace