Skip to main content
A newer version of this page is available. .

SpeedUnitsConverter Class

Converts speed measurement from one unit to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v18.2.dll

Declaration

public class SpeedUnitsConverter :
    BaseUnitsConverter<Speed>

The following members return SpeedUnitsConverter objects:

Remarks

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

To convert one knot to meters per hour, use the following code:


double result = Units.Speed.Convert(1.0f, Speed.Knot, Speed.MetersPerHour);

Inheritance

Object
BaseUnitsConverter<Speed>
SpeedUnitsConverter
See Also