Skip to main content

BaseUnitsConverter<T>.Convert(Double, T, T) Method

Converts a value of type Double from one unit of measurement to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public double Convert(
    double value,
    T from,
    T to
)

Parameters

Name Type Description
value Double

A Double source value.

from T

Measurement unit of the source value.

to T

Measurement unit of the target value.

Returns

Type Description
Double

A Double value.

See Also