ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipointBuilderEx Class / RemovePoint Method
The index at which the point will be removed.
Example

In This Topic
    RemovePoint Method
    In This Topic
    Remove a point at the specified index.
    Syntax
    public void RemovePoint( 
       int index
    )
    Public Sub RemovePoint( _
       ByVal index As Integer _
    ) 

    Parameters

    index
    The index at which the point will be removed.
    Exceptions
    ExceptionDescription
    The point index is < 0 or > Coordinate2Ds.Count.
    Remarks
    If the point has Zs, Ms, or IDs, then the attributes will also be removed from the corresponding lists.
    Example
    Modify the points of a Multipoint
    // assume a multiPoint has been built from 4 points
    // the modified multiPoint will have the first point removed and the last point moved
    
    // use the builderEx constructors which don't need to run on the MCT.
    MultipointBuilderEx builderEx = new MultipointBuilderEx(multipoint);
    // remove the first point
    builderEx.RemovePoint(0);
    // modify the coordinates of the last point
    var ptEx = builderEx.GetPoint(builderEx.PointCount - 1);
    builderEx.RemovePoint(builderEx.PointCount - 1);
    
    var newPtEx = MapPointBuilderEx.CreateMapPoint(ptEx.X + 1.0, ptEx.Y + 2.0);
    builderEx.AddPoint(newPtEx);
    Multipoint modifiedMultiPointEx = builderEx.ToGeometry() as Multipoint;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also