ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / CubicBezierSegment Class / Length Property
Example

In This Topic
    Length Property (CubicBezierSegment)
    In This Topic
    Gets the 2D length of this cubic bezier.
    Syntax
    Public Overrides NotOverridable ReadOnly Property Length As Double
    public override double Length {get;}
    Remarks
    If the 3D length of the cubic bezier is required, create a polyline from the bezier segment and use the Polyline.Length3D property.
    Example
    Cubic Bezier Properties
    {
      // retrieve the bezier curve's control points
      CubicBezierSegment cb = CubicBezierBuilderEx.CreateCubicBezierSegment(bezierSegment);
      MapPoint startPt = cb.StartPoint;
      Coordinate2D ctrlPt1 = cb.ControlPoint1;
      Coordinate2D ctrlPt2 = cb.ControlPoint2;
      MapPoint endPt = cb.EndPoint;
    
      bool isCurve = cb.IsCurve;
      double len = cb.Length;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also