ArcObjects Library Reference  (Geometry)    

ILine.Angle Property

The angle between this line and the positive x-axis.

[Visual Basic 6.0]
Property Angle As Double
[Visual Basic .NET]
Public ReadOnly Property Angle As Double
[C#]
public double Angle {get;}
[Java]
public Double getAngle()
throws
    IOException,
    AutomationException
[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

Example

ILine_Example

 


Feedback Send feedback on this page