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


IAngularUnit.RadiansPerUnit Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAngularUnit Interface > IAngularUnit.RadiansPerUnit Property
ArcGIS Developer Help

IAngularUnit.RadiansPerUnit Property

The radians per angular unit.

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

RadiansPerUnit is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

    public void angularUnitRadiansExample()
    {
        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
        System.Object obj = Activator.CreateInstance(factoryType);
        ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;

        IUnit unit = spatialReferenceFactory.CreateUnit((int)esriSRUnitType.esriSRUnit_ArcSecond);
        IAngularUnit angularUnit = unit as IAngularUnit;
        //Get the RadiansPerUnit value
        System.Windows.Forms.MessageBox.Show(Convert.ToString(angularUnit.RadiansPerUnit));
    }

See Also

IAngularUnit Interface