ArcGIS Explorer Component Help |
Polyline..::.SetPoint Method (Int32, Int32, Point) |
Polyline Class See Also |
Replaces the Point at the specified index within the specified path of the Polyline 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 pathIndex, int pointIndex, Point pt ) |
Visual Basic (Declaration) |
---|
Public Sub SetPoint ( _ pathIndex As Integer, _ pointIndex As Integer, _ pt As Point _ ) |
Parameters
- pathIndex
- Type: System..::.Int32
The index of the path 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 path within a multipart Polyline, by replacing an existing Point (instead of using RemovePointAt followed by InsertPoint); the new point will have the specified pathIndex and pointIndex and all other existing points in the Polyline 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 pathIndex in the Polyline. |