ArcGIS Pro 3.0 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 override double Length {get;}
    Public Overrides NotOverridable ReadOnly Property Length As Double
    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, Windows 10, Windows 8.1

    See Also