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 Polyline; points with an index position greater than pointIndex will have their index position reduced by 1. Removing a Point from a Polyline changes the shape of the Polyline, so that the two points either side of pointIndex will be directly connected. When used on a multipart Polyline, this method operates only on the first path of the Polyline; see the RemovePointAt(Int32, Int32) overload to remove a Point 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
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified pointIndex must exist in the Polyline. |