Method AddPoint
AddPoint(MapPoint)
Adds a new point to the end of the last part of the multipart.
Declaration
public int AddPoint(MapPoint point)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | point | The point to add. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the new point |
Remarks
If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
AddPoint(Double, Double)
Adds a new point to the end of the last part of the multipart.
Declaration
public int AddPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x-coordinate of the point to add. |
System.Double | y | The y-coordinate of the point to add. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the new point |
Remarks
If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
AddPoint(Double, Double, Double)
Adds a new point to the end of the last part of the multipart.
Declaration
public int AddPoint(double x, double y, double z)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x-coordinate of the point to add. |
System.Double | y | The y-coordinate of the point to add. |
System.Double | z | The z-coordinate of the point to add. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the new point |
Remarks
If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |