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

Namespace:  ESRI.ArcGISExplorer.Geometry

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

Syntax

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

Parameters

pointIndex
Type: System..::.Int32

The index position of the Point to remove.

Remarks

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

Note, if either the first or last Point is removed from a closed Polygon ring, the Polygon no longer describes a closed shape; refer to the Close()()() or Simplify(Polygon) for options to rectify this.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThe specified pointIndex must exist in the Polygon.

See Also