ArcGIS Pro 2.6 API Reference Guide
Length Method (IGeometryEngine)

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : Length Method
The input geometry.
Gets the length for a specified geometry. This is a planar measurement using 2D Cartesian mathematics.
Syntax
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, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members