ArcGIS Explorer Component Help |
Polyline..::.RemovePointsAt Method (Int32, Int32) |
Polyline Class See Also |
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
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified pointIndex must exist in the Polyline, and the specified count combined with the pointIndex must indicate a range of existing points. |