Skip to main content

DistanceUnitsConverter Class

Converts distance measurement from one unit to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public class DistanceUnitsConverter :
    BaseUnitsConverter<Distance>

The following members return DistanceUnitsConverter objects:

Remarks

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

To convert 100 feet to meters, use the following code:

double result = Units.Distance.Convert(100.0f, Distance.Foot, Distance.Meter);

Inheritance

Object
BaseUnitsConverter<Distance>
DistanceUnitsConverter
See Also