ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / CubicBezierBuilderEx Class / CreateCubicBezierSegment Method / CreateCubicBezierSegment(CubicBezierSegment,SpatialReference) Method
The cubic bezier.
(Optional)The spatial reference. If spatialReference is null, then the spatial reference is inherited from cubicBezier.
Example

In This Topic
    CreateCubicBezierSegment(CubicBezierSegment,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the CubicBezierSegment class from the four control points of a cubic bezier.
    Syntax
    Public Overloads Shared Function CreateCubicBezierSegment( _
       ByVal cubicBezier As CubicBezierSegment, _
       Optional ByVal spatialReference As SpatialReference _
    ) As CubicBezierSegment

    Parameters

    cubicBezier
    The cubic bezier.
    spatialReference
    (Optional)The spatial reference. If spatialReference is null, then the spatial reference is inherited from cubicBezier.
    Exceptions
    ExceptionDescription
    cubicBezier is null.
    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