ArcGIS Pro 2.7 API Reference Guide
Length Method (GeometryEngine)

ArcGIS.Core.Geometry Namespace > GeometryEngine Class : Length Method
The input geometry.
Gets the length for a specified geometry. This is a planar measurement using 2D Cartesian mathematics.
Syntax
public double Length( 
   Geometry geometry
)
Public Function Length( _
   ByVal geometry As Geometry _
) As Double

Parameters

geometry
The input geometry.

Return Value

The calculated length in the same units as the geometry's spatial reference unit.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag or Multipatch.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GeometryEngine Class
GeometryEngine Members