ArcGIS Explorer Component Help |
Polygon..::.RemovePointAt Method (Int32, Int32) |
Polygon Class See Also |
Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public void RemovePointAt( int ringIndex, int pointIndex ) |
Visual Basic (Declaration) |
---|
Public Sub RemovePointAt ( _ ringIndex As Integer, _ pointIndex As Integer _ ) |
Parameters
- ringIndex
- Type: System..::.Int32
The index of the ring within the Polygon.
- pointIndex
- Type: System..::.Int32
The index of the Point within the ringIndex.
Remarks
RemovePointAt removes the Point at the specified index position from the specified ring within the Polygon; points with an index position greater than pointIndex will have their index position reduced by 1, and all other existing rings within the Polygon remain unchanged. Removing a Point from a ring changes the shape of the ring, so that the two points either side of pointIndex 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 or themselves; again, refer to the Simplify(Polygon) method for more information.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified pointIndex and ringIndex must exist in the Polygon. |