ArcGIS Pro 2.6 API Reference Guide
ConvertToMeters Method
Example 

ArcGIS.Core.Geometry Namespace > LinearUnit Class : ConvertToMeters Method
Distance in the units of this instance.
Converts a value in the unit of this instance to meters.
Syntax
public double ConvertToMeters( 
   double distance
)
Public Function ConvertToMeters( _
   ByVal distance As Double _
) As Double

Parameters

distance
Distance in the units of this instance.

Return Value

Distance converted to meters.
Example
// convert 10 feet to meters
double metres = LinearUnit.Feet.ConvertToMeters(10);

// convert 20 meters to feet
double feet = LinearUnit.Feet.ConvertFromMeters(20.0);
// convert 11 centimeters to millimeters
double mm = LinearUnit.Centimeters.ConvertTo(11, LinearUnit.Millimeters);

// convert the result back to centimeters
double cm = LinearUnit.Millimeters.ConvertTo(mm, LinearUnit.Centimeters);

// convert the millimeter result back to meters
double meters = LinearUnit.Millimeters.ConvertToMeters(mm);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

LinearUnit Class
LinearUnit Members