ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / CubicBezierBuilderEx Class / CubicBezierBuilderEx Constructor / CubicBezierBuilderEx Constructor(CubicBezierSegment,SpatialReference)
The cubic bezier whose control points will be used to construct the CubicBezierBuilderEx.
(Optional) The spatial reference. The default value is null. The spatial reference of the input segment is ignored.
Example

In This Topic
    CubicBezierBuilderEx Constructor(CubicBezierSegment,SpatialReference)
    In This Topic
    Creates a new instance of the CubicBezierBuilderEx class from another cubic bezier segment.
    Syntax
    Public Function New( _
       ByVal cubicBezier As CubicBezierSegment, _
       Optional ByVal spatialReference As SpatialReference _
    )

    Parameters

    cubicBezier
    The cubic bezier whose control points will be used to construct the CubicBezierBuilderEx.
    spatialReference
    (Optional) The spatial reference. The default value is null. The spatial reference of the input segment is ignored.
    Exceptions
    ExceptionDescription
    cubicBezier is null.
    Example
    Cubic Bezier Builder Properties
    {
      // retrieve the bezier curve's control points
    
      CubicBezierBuilderEx cbbEx = new CubicBezierBuilderEx(bezierSegment);
      MapPoint startPtEx = cbbEx.StartPoint;
      Coordinate2D ctrlPt1Ex = cbbEx.ControlPoint1;
      Coordinate2D ctrlPt2Ex = cbbEx.ControlPoint2;
      MapPoint endPtEx = cbbEx.EndPoint;
    
      // or use the QueryCoords method
      cbbEx.QueryCoords(out startPtEx, out ctrlPt1Ex, out ctrlPt2Ex, out endPtEx);
    }
    Create Bezier Text Element
    {
      //Note: Must be on QueuedTask.Run
    
      //Build geometry
      Coordinate2D pt1 = new Coordinate2D(3.5, 7.5);
      Coordinate2D pt2 = new Coordinate2D(4.16, 8);
      Coordinate2D pt3 = new Coordinate2D(4.83, 7.1);
      Coordinate2D pt4 = new Coordinate2D(5.5, 7.5);
      var bez = new CubicBezierBuilderEx(pt1, pt2, pt3, pt4);
      var bezSeg = bez.ToSegment();
      Polyline bezPl = PolylineBuilderEx.CreatePolyline(bezSeg, AttributeFlags.AllAttributes);
    
      //Set symbology, create and add element to layout
      CIMTextSymbol sym = SymbolFactory.Instance.ConstructTextSymbol(
        ColorFactory.Instance.BlackRGB, 24, "Comic Sans MS", "Regular");
    
      var ge = ElementFactory.Instance.CreateTextGraphicElement(
        layout, TextType.SplinedText, bezPl, sym, "this is the bezier text",
              "New Bezier Text", true, new ElementInfo() { Anchor = Anchor.CenterPoint });
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also