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


ICurve3D.Length3D Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

ICurve3D.Length3D Property

The length of the curve.

[Visual Basic .NET]
Public ReadOnly Property Length3D As Double
[C#]
public double Length3D {get;}
[C++]
HRESULT get_Length3D(
  double* pLength
);
[C++]

Parameters pLength [out, retval] pLength is a parameter of type double

Product Availability

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

Description

Returns the 3D length of the entire curve.  The length of the curve is the sum of the lengths along each parameterized Segment between vertices along the curve. 

[C#]

 

        public static void GetLength3D()

        {

               IGeometry polylineGeometry=GetPolylineGeometry();


               ICurve3D
 curve3D=polylineGeometry as ICurve3D;

               double length3D=curve3D.Length3D;

               //length3D = 60.761

        }

See Also

ICurve3D Interface