Show / Hide Table of Contents

Method SetPoint

SetPoint(Int32, MapPoint)

Replace a point in the part at the specified point index. Segments that use this point will be changed.

Declaration
public void SetPoint(int pointIndex, MapPoint point)
Parameters
Type Name Description
System.Int32 pointIndex

Zero-based index of the point.

MapPoint point

The point.

Remarks

The points in the part are the start and end points of segments. Setting a new point will affect 1 or 2 segments using the point at the specified index. The type of affected segment(s) (LineSegment, CubicBezierSegment or EllipticArcSegment) will remain the same.

For affected cubic Bezier segments, the shape of the curve may change because the control points remain the same, as does the unchanged start or end point location. For elliptic arc segments, the arc parameters are adjusted enough to ensure the unchanged start or end point location remains the same.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.