Removes a specified number of points from the Polygon, starting at the specified index position. If called on a multipart Polygon, removes points from 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 RemovePointsAt(
	int pointIndex,
	int count
)
Visual Basic (Declaration)
Public Sub RemovePointsAt ( _
	pointIndex As Integer, _
	count As Integer _
)

Parameters

pointIndex
Type: System..::.Int32

The index position of the first Point to remove.
count
Type: System..::.Int32

The number of points to remove.

Remarks

RemovePointsAt removes multiple points from the Polygon; the number of points in the Polygon is reduced by count. Removing points from a Polygon changes the shape of the Polygon, so that the two points either side of the removed points will be directly connected. When used on a multipart Polygon, this method operates only on the first ring of the Polygon; see the RemovePointsAt(Int32, Int32, Int32) overload to remove multiple points 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, and the specified count combined with the pointIndex must indicate a range of existing points.

See Also