ArcGIS Pro 2.9 API Reference Guide
QueryCoords Method (CubicBezierBuilder)
Example 

ArcGIS.Core.Geometry Namespace > CubicBezierBuilder Class : QueryCoords Method
The start point.
Control point 1 of the cubic bezier.
Control point 2 of the cubic bezier.
The end point.
Copies this CubicBezier curve's control points into the startPt, controlPt1, controlPt2, and endPt parameters. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void QueryCoords( 
   out MapPoint startPt,
   out Coordinate2D controlPt1,
   out Coordinate2D controlPt2,
   out MapPoint endPt
)
Public Sub QueryCoords( _
   ByRef startPt As MapPoint, _
   ByRef controlPt1 As Coordinate2D, _
   ByRef controlPt2 As Coordinate2D, _
   ByRef endPt As MapPoint _
) 

Parameters

startPt
The start point.
controlPt1
Control point 1 of the cubic bezier.
controlPt2
Control point 2 of the cubic bezier.
endPt
The end point.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  // retrieve the bezier curve's control points
  using (CubicBezierBuilder cbb = new CubicBezierBuilder(bezierSegment))
  {
    MapPoint startPt = cbb.StartPoint;
    Coordinate2D ctrlPt1 = cbb.ControlPoint1;
    Coordinate2D ctrlPt2 = cbb.ControlPoint2;
    MapPoint endPt = cbb.EndPoint;

    // or use the QueryCoords method
    cbb.QueryCoords(out startPt, out ctrlPt1, out ctrlPt2, out endPt);
  }
});

CubicBezierBuilder cbbEx = new CubicBezierBuilder(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);
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

CubicBezierBuilder Class
CubicBezierBuilder Members