Constructor Polyline
Polyline(IEnumerable<MapPoint>)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<MapPoint> part)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MapPoint> | part | Points to be used for the first part. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Relevant samples
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Create geometries: Create simple geometry types.
Cut geometry: Cut a geometry along a polyline.
Polyline(IEnumerable<MapPoint>, SpatialReference)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<MapPoint> part, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MapPoint> | part | Points to be used for the first part. |
| SpatialReference | spatialReference | The spatial reference. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<IEnumerable<MapPoint>>)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<IEnumerable<MapPoint>> parts)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<MapPoint>> | parts | The polyline parts. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<IEnumerable<MapPoint>>, SpatialReference)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<IEnumerable<MapPoint>> parts, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<MapPoint>> | parts | The polyline parts. |
| SpatialReference | spatialReference | The spatial reference of the polyline. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<Segment>)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<Segment> part)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Segment> | part | Points to be used for the first part. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<Segment>, SpatialReference)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<Segment> part, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Segment> | part | Points to be used for the first part. |
| SpatialReference | spatialReference | The spatial reference. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<IEnumerable<Segment>>)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<IEnumerable<Segment>> parts)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<Segment>> | parts | The Polyline parts. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Polyline(IEnumerable<IEnumerable<Segment>>, SpatialReference)
Initializes a new instance of the Polyline class.
Declaration
public Polyline(IEnumerable<IEnumerable<Segment>> parts, SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<Segment>> | parts | The Polyline parts. |
| SpatialReference | spatialReference | The spatial reference of the Polyline. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |