ArcObjects Library Reference (Geometry)  

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(
  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