Constructor PolylineBuilder
PolylineBuilder(SpatialReference)
Initializes a new instance of the PolylineBuilder class.
Declaration
public PolylineBuilder(SpatialReference spatialReference)
Parameters
| Type | Name | Description |
|---|---|---|
| SpatialReference | spatialReference | The builder's 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.15 |
Relevant samples
PolylineBuilder(Polyline)
Initializes a new instance of the PolylineBuilder class from a polyline.
Declaration
public PolylineBuilder(Polyline polyline)
Parameters
| Type | Name | Description |
|---|---|---|
| Polyline | polyline | A polyline object. |
Remarks
Prior to v100.12, only polylines without curves could be used; passing in a polygon where
HasCurves is true would throw an exception.
From v100.12, polylines with curves are supported.
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.15 |
PolylineBuilder(IEnumerable<MapPoint>, SpatialReference)
Initializes a new instance of the PolylineBuilder class.
Declaration
public PolylineBuilder(IEnumerable<MapPoint> points, SpatialReference spatialReference = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MapPoint> | points | Points for the first part |
| SpatialReference | spatialReference | 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 |
PolylineBuilder(IEnumerable<IEnumerable<MapPoint>>, SpatialReference)
Initializes a new instance of the PolylineBuilder class.
Declaration
public PolylineBuilder(IEnumerable<IEnumerable<MapPoint>> points, SpatialReference spatialReference = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<MapPoint>> | points | Points for the parts in the polyline |
| SpatialReference | spatialReference | 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 |
PolylineBuilder(IEnumerable<Segment>, SpatialReference)
Initializes a new instance of the PolylineBuilder class.
Declaration
public PolylineBuilder(IEnumerable<Segment> part, SpatialReference spatialReference = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Segment> | part | The Polyline part |
| SpatialReference | spatialReference | SpatialReference of the PolylineBuilder |
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 |
PolylineBuilder(IEnumerable<IEnumerable<Segment>>, SpatialReference)
Initializes a new instance of the PolylineBuilder class.
Declaration
public PolylineBuilder(IEnumerable<IEnumerable<Segment>> parts, SpatialReference spatialReference = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEnumerable<Segment>> | parts | The Polyline parts |
| SpatialReference | spatialReference | SpatialReference of the PolylineBuilder |
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 |