Removes a specified number of points from the specified ring within the Polygon, starting at the specified index position.

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 ringIndex,
	int pointIndex,
	int count
)
Visual Basic (Declaration)
Public Sub RemovePointsAt ( _
	ringIndex As Integer, _
	pointIndex As Integer, _
	count As Integer _
)

Parameters

ringIndex
Type: System..::.Int32

The index position of the ring to remove points from.
pointIndex
Type: System..::.Int32

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

The number of points to remove.

Remarks

RemovePointsAt removes multiple points from the specified ring within the Polygon, beginning at the specified pointIndex and continuing until count points are removed; the number of points in the Polygon is reduced by count, and all other existing rings within the Polygon remain unchanged. Removing points from a ring changes the shape of the ring, so that the two points either side of the removed points will be directly connected.

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. Note also that changing the shape of a ring in a multipart Polygon may result in rings intersecting each other; again, refer to the Simplify(Polygon) method for more information.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThe specified pointIndex and ringIndexmust exist in the Polygon, and the specified count combined with the pointIndex must indicate a range of existing points in the specified ring.

See Also