This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IL > ILine Interface > ILine.Angle Property (ArcObjects .NET 10.4 SDK) |
The angle between this line and the positive x-axis.
[Visual Basic .NET] Public ReadOnly Property Angle As Double
[C#] public double Angle {get;}
[C++]
HRESULT get_Angle(
double* outAngle
);
[C++]
Parameters outAngle [out, retval] outAngle is a parameter of type double
The following Visual Basic example gets the angle of a line and converts it to degrees :
dAngleDegree=(180 * pLine.Angle) / Pi
Where Pi=4 * Atn(1)