ArcGIS Pro 2.7 API Reference Guide
ConvertTo(Double,AreaUnit) Method
Example 

ArcGIS.Core.Geometry Namespace > AreaUnit Class : ConvertTo(Double,AreaUnit) Method
Area in the units of this instance.
Unit to convert to.
Converts the area to the provided area unit.
Syntax
public double ConvertTo( 
   double inArea,
   AreaUnit outUnit
)
Public Function ConvertTo( _
   ByVal inArea As Double, _
   ByVal outUnit As AreaUnit _
) As Double

Parameters

inArea
Area in the units of this instance.
outUnit
Unit to convert to.

Return Value

Area converted to the specifed unit.
Exceptions
ExceptionDescription
The outUnit is null.
Example
// convert 2 hectares to acres
double acres = AreaUnit.Hectares.ConvertTo(2, AreaUnit.Acres);
// convert 300 hectares to square miles
double sqMiles = AreaUnit.Hectares.ConvertTo(300, AreaUnit.SquareMiles);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

AreaUnit Class
AreaUnit Members