ArcGIS Pro 2.6 API Reference Guide
MultipointBuilder Constructor(Multipoint)
Example 

ArcGIS.Core.Geometry Namespace > MultipointBuilder Class > MultipointBuilder Constructor : MultipointBuilder Constructor(Multipoint)
Multipoint to edit.
Initializes a new instance of the MultipointBuilder class. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public MultipointBuilder( 
   Multipoint multipoint
)
Public Function New( _
   ByVal multipoint As Multipoint _
)

Parameters

multipoint
Multipoint to edit.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
multipoint is null.
Remarks
The spatial reference is inherited from multipoint.
Example
// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  // assume a multiPoint has been built from 4 points
  // the modified multiPoint will have the first point removed and the last point moved

  using (MultipointBuilder mpb = new MultipointBuilder(multipoint))
  {
    // remove the first point
    mpb.RemovePoint(0);

    // modify the coordinates of the last point
    MapPoint pt = mpb.GetMapPoint(mpb.PointCount - 1);
    mpb.RemovePoint(mpb.PointCount - 1);

    MapPoint newPt = MapPointBuilder.CreateMapPoint(pt.X + 1.0, pt.Y + 2.0);
    mpb.Add(newPt);

    Multipoint modifiedMultiPoint = mpb.ToGeometry();
  }
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MultipointBuilder Class
MultipointBuilder Members
Overload List