This document is archived and information here might be outdated.  Recommended version.


IUnitConverter.ConvertUnits Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IUnitConverter.ConvertUnits Method

Convert Esri units.

[Visual Basic .NET]
Public Function ConvertUnits ( _
    ByVal dValue As Double, _
    ByVal inUnits As esriUnits, _
    ByVal outUnits As esriUnits _
) As Double
[C#]
public double ConvertUnits (
    double dValue,
    esriUnits inUnits,
    esriUnits outUnits
);
[C++]
HRESULT ConvertUnits(
  double dValue,
  esriUnits inUnits,
  esriUnits outUnits,
  double* outValue
);
[C++]

Parameters dValue [in] dValue is a parameter of type double inUnits [in]
inUnits is a parameter of type esriUnits outUnits [in]
outUnits is a parameter of type esriUnits outValue [out, retval] outValue is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Converts the specified numeric data value from one unit of measure to another unit of measure. 

See Also

IUnitConverter Interface