ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / CubicBezierBuilderEx Class / CubicBezierBuilderEx Constructor / CubicBezierBuilderEx Constructor(Coordinate2D,Coordinate2D,Coordinate2D,Coordinate2D,SpatialReference)
The point from which the curve starts.
Control point 1 of the cubic bezier.
Control point 2 of the cubic bezier.
The point at which the curve ends.
(Optional) The spatial reference.The default value is null.
Example

In This Topic
    CubicBezierBuilderEx Constructor(Coordinate2D,Coordinate2D,Coordinate2D,Coordinate2D,SpatialReference)
    In This Topic
    Creates a new instance of the CubicBezierBuilderEx class from four control points.
    Syntax

    Parameters

    startPoint
    The point from which the curve starts.
    controlPoint1
    Control point 1 of the cubic bezier.
    controlPoint2
    Control point 2 of the cubic bezier.
    endPoint
    The point at which the curve ends.
    spatialReference
    (Optional) The spatial reference.The default value is null.
    Exceptions
    ExceptionDescription
    startPoint or controlPoint1 or controlPoint2 or endPoint is null or empty.
    Example
    Create Bezier Text Element
    //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 symbolology, create and add element to layout
    CIMTextSymbol sym = SymbolFactory.Instance.ConstructTextSymbol(
      ColorFactory.Instance.BlackRGB, 24, "Comic Sans MS", "Regular");
    
    var ge = ElementFactory.Instance.CreateTextGraphicElement(
      container, TextType.SplinedText, bezPl, sym, "this is the bezier text",
            "New Bezier Text", true, new ElementInfo() { Anchor = Anchor.CenterPoint });
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also