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


ICurve3D.Length3D Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > ICurve3D Interface > ICurve3D.Length3D Property
ArcGIS Developer Help

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