ArcGIS Pro 2.8 API Reference Guide
ConvertFromMeters Method
Example 

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

Parameters

meters
Distance to convert from in meters.

Return Value

Distance converted from 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);
try
{
  // create a british 1936 foot
  var britFoot = LinearUnit.CreateLinearUnit(9095);
  string unitName = britFoot.Name;                        //  "Foot_British_1936"
  double conversionFactor = britFoot.ConversionFactor;    // 0.3048007491
  double metersPerUnit = britFoot.MetersPerUnit;
  int factoryCode = britFoot.FactoryCode;                 // 9095

  // convert 10 british 1936 feet to centimeters
  double val = britFoot.ConvertTo(10, LinearUnit.Centimeters);

  // convert 10 m to british 1936 feet
  val = britFoot.ConvertFromMeters(10);
}
catch (ArgumentException)
{
  // ArgumentException will be thrown by CreateLinearUnit in the following scenarios
  // - if the factory code used is a non-linear factory code  (i.e. it corresponds to square meters which is an area unit code)
  // - if the factory code used is invalid (i.e. it is negative or doesn't correspond to any factory code)
}
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LinearUnit Class
LinearUnit Members