This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAngularUnit Interface > IAngularUnit.RadiansPerUnit Property (ArcObjects .NET 10.5 SDK) |
The radians per angular unit.
[Visual Basic .NET] Public ReadOnly Property RadiansPerUnit As Double
[C#] public double RadiansPerUnit {get;}
[C++]
HRESULT get_RadiansPerUnit(
double* RadiansPerUnit
);
[C++]
Parameters RadiansPerUnit [out, retval] RadiansPerUnit is a parameter of type double
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));
}