ArcGIS Explorer Component Help |
Polygon..::.SetPoint Method (Int32, Int32, Point) |
Polygon Class See Also |
Replaces the Point at the specified index within the specified ring of the Polygon with a copy of the specified Point.
Namespace:
ESRI.ArcGISExplorer.GeometryAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public void SetPoint( int ringIndex, int pointIndex, Point pt ) |
Visual Basic (Declaration) |
---|
Public Sub SetPoint ( _ ringIndex As Integer, _ pointIndex As Integer, _ pt As Point _ ) |
Parameters
- ringIndex
- Type: System..::.Int32
The index of the ring to copy the new Point into.
- pointIndex
- Type: System..::.Int32
The index of the existing Point to replace.
- pt
- Type: ESRI.ArcGISExplorer.Geometry..::.Point
The Point to copy into the pointIndex.
Remarks
Use this method to set a new Point into a specific ring within a multipart Polygon, by replacing an existing Point (instead of using RemovePointAt followed by InsertPoint); the new point will have the specified ringIndex and pointIndex and all other existing points in the Polygon remain the same.
Note that the CoordinateSystem property of any new points added, inserted or set into existing an existing Polygon or Polyline will be discarded, and the coordinates (X and Y properties) of the point assumed to be in the same CoordinateSystem as the Polygon or Polyline to which they are added.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified pointIndex must exist in the specified ringIndex in the Polygon. |