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


ILine.Angle Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IL > ILine Interface > ILine.Angle Property
ArcGIS Developer Help

ILine.Angle Property

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(
  System.Double* outAngle
);
[C++]
Parameters
outAngle [out, retval]

outAngle is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks


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)

Line Angle Example

See Also

ILine Interface