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


ILinearUnit.MetersPerUnit Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IL > ILinearUnit Interface > ILinearUnit.MetersPerUnit Property
ArcGIS Developer Help

ILinearUnit.MetersPerUnit Property

The meters per unit for a coordinate system.

[Visual Basic .NET]
Public ReadOnly Property MetersPerUnit As Double
[C#]
public double MetersPerUnit {get;}
[C++]
HRESULT get_MetersPerUnit(
  System.Double* MetersPerUnit
);
[C++]
Parameters
MetersPerUnit [out, retval]

MetersPerUnit is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]     public void ILinearUnitExample(ILinearUnit linearUnit)
    {
        double mpu = linearUnit.MetersPerUnit;
        //Get the Meters Per Unit value
        System.Windows.Forms.MessageBox.Show(mpu.ToString());
    }

See Also

ILinearUnit Interface