Removes the point at the specified index position in the specified path from 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 RemovePointAt(
	int pathIndex,
	int pointIndex
)
Visual Basic (Declaration)
Public Sub RemovePointAt ( _
	pathIndex As Integer, _
	pointIndex As Integer _
)

Parameters

pathIndex
Type: System..::.Int32

The index of the path within the Polyline.
pointIndex
Type: System..::.Int32

The index of the Point within the pathIndex.

Remarks

RemovePointAt removes the Point at the specified index position from the specified path within the Polyline; points with an index position greater than pointIndex will have their index position reduced by 1, and all other existing paths within the Polyline remain unchanged. Removing a Point from a path changes the shape of the path, so that the two points either side of pointIndex will be directly connected.

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 and pathIndex must exist in the Polyline.

See Also