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


IProjectedCoordinateSystem.CentralMeridian Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IProjectedCoordinateSystem Interface > IProjectedCoordinateSystem.CentralMeridian Property
ArcGIS Developer Help

IProjectedCoordinateSystem.CentralMeridian Property

The central meridian (Lambda0) of a projected coordinate system.

[Visual Basic .NET]
Public Function get_CentralMeridian ( _
    ByVal inDegrees As Boolean _
) As Double
[Visual Basic .NET]
Public Sub set_CentralMeridian ( _
    ByVal inDegrees As Boolean, _
    ByVal CentralMeridian As Double _
)
[C#]
public double get_CentralMeridian (
    bool inDegrees
);
[C#]
public void set_CentralMeridian (
    bool inDegrees,
    double CentralMeridian
);
[C++]
HRESULT get_CentralMeridian(
  VARIANT_BOOL inDegrees,
  System.Double* CentralMeridian
);
[C++]
HRESULT put_CentralMeridian(
  VARIANT_BOOL inDegrees,
  double CentralMeridian
);
[C++]
Parameters
inDegrees [in]

inDegrees is a parameter of type bool CentralMeridian [out, retval]
CentralMeridian is a parameter of type double* inDegrees [in]
inDegrees is a parameter of type bool CentralMeridian
CentralMeridian is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]
private void ManipulateCentralMeridian(IProjectedCoordinateSystem projectedCoordinateSystem)
{
  double centralMeridianDEG = projectedCoordinateSystem.get_CentralMeridian(true);
  System.Windows.Forms.MessageBox.Show(centralMeridianDEG.ToString());
  projectedCoordinateSystem.set_CentralMeridian(true, 0);
}
[Visual Basic .NET]

    'Example for IProjectedCoordinateSystem.CentralMeridian Property Get
    Public Sub ManipulateCentralMeridian(ByRef pProjCoordSys As ESRI.ArcGIS.Geometry.IProjectedCoordinateSystem4)

        'Get the CentralMeridian of the Projected Coordinate System
        Debug.Print(pProjCoordSys.CentralMeridian(True))
        'Set the CentralMeridian for the Projected Coordinate System
        pProjCoordSys.CentralMeridian(True) = 0
    End Sub

See Also

IProjectedCoordinateSystem Interface