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 |
|---|---|
| int | 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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|---|
| double | x | The x-coordinate of the point to add. |
| double | y | The y-coordinate of the point to add. |
Returns
| Type | Description |
|---|---|
| int | 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.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|---|
| double | x | The x-coordinate of the point to add. |
| double | y | The y-coordinate of the point to add. |
| double | z | The z-coordinate of the point to add. |
Returns
| Type | Description |
|---|---|
| int | 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.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |