ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / SegmentBuilderEx Class / StartPoint Property
Example

In This Topic
    StartPoint Property (SegmentBuilderEx)
    In This Topic
    Gets or sets the start point.
    Syntax
    public virtual MapPoint StartPoint {get; set;}
    Public Overridable Property StartPoint As MapPoint
    Exceptions
    ExceptionDescription
    Setting the start point with a null object.
    Example
    Alter LineSegment Coordinates
    // builderEx constructors don't need to run on the MCT
    LineBuilderEx lbuilderEx = new LineBuilderEx(lineSegment);
    // find the existing coordinates
    lbuilderEx.QueryCoords(out startPt, out endPt);
    
    // or use 
    //startPt = lbuilderEx.StartPoint;
    //endPt = lbuilderEx.EndPoint;
    
    // update the coordinates
    lbuilderEx.SetCoords(GeometryEngine.Instance.Move(startPt, 10, 10) as MapPoint, GeometryEngine.Instance.Move(endPt, -10, -10) as MapPoint);
    
    // or use 
    //lbuilderEx.StartPoint = GeometryEngine.Instance.Move(startPt, 10, 10) as MapPoint;
    //lbuilderEx.EndPoint = GeometryEngine.Instance.Move(endPt, -10, -10) as MapPoint;
    
    LineSegment segment2 = lbuilderEx.ToSegment() as LineSegment;
    
    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);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also