Removes the point at the specified index position from the Polyline. If called on a multipart Polyline, removes the point from the specified index position within the first path of the Polyline.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: (


public void RemovePointAt(
	int pointIndex
Visual Basic (Declaration)
Public Sub RemovePointAt ( _
	pointIndex As Integer _


Type: System..::.Int32

The index position of the Point to remove.


RemovePoint removes the Point at the specified index position from the Polyline; points with an index position greater than pointIndex will have their index position reduced by 1. Removing a Point from a Polyline changes the shape of the Polyline, so that the two points either side of pointIndex will be directly connected. When used on a multipart Polyline, this method operates only on the first path of the Polyline; see the RemovePointAt(Int32, Int32) overload to remove a Point from a specific path in a multipart Polyline.

Note that changing the shape of a path in a multipart Polyline may result in paths intersecting or overlapping each other or themselves; refer to the Simplify(Polyline) method for more information about removing such sections.


System..::.ArgumentOutOfRangeExceptionThe specified pointIndex must exist in the Polyline.

See Also