Removes a specified number of points from the Polyline, starting at the specified index position. If called on a multipart Polyline, removes points from the first path of the Polyline.

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 Polyline; the number of points in the Polyline is reduced by count. Removing points from a Polyline changes the shape of the Polyline, so that the two points either side of the removed points will be directly connected. When used on a multipart Polyline, this method operates only on the first path of the Polyline; see the RemovePointsAt(Int32, Int32, Int32) overload to remove multiple points 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.

Exceptions

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

See Also