ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / LineSegment Class / Length3D Property

In This Topic
    Length3D Property (LineSegment)
    In This Topic
    Gets the 3D length of this instance.
    Syntax
    public double Length3D {get;}
    Public ReadOnly Property Length3D As Double
    Exceptions
    ExceptionDescription
    The geometry has undefined Z-values for some of its vertices.
    Remarks
    If the start or end point of the segment is not Z-aware, then the default Z-value, z = 0, is used.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also