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


ISpheroid.SemiMajorAxis Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpheroid Interface > ISpheroid.SemiMajorAxis Property
ArcGIS Developer Help

ISpheroid.SemiMajorAxis Property

The semi-major axis length of this spheroid.

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

axis is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]     private void PrintSpheroid(ISpheroid spheroid)
    {
        System.Windows.Forms.MessageBox.Show(spheroid.SemiMajorAxis.ToString());
    }

See Also

ISpheroid Interface