Constructor PolygonBuilder
PolygonBuilder(SpatialReference)
Initializes a new instance of the PolygonBuilder class with the specified SpatialReference.
Declaration
public PolygonBuilder(SpatialReference spatialReference)
Parameters
Type | Name | Description |
---|---|---|
SpatialReference | spatialReference | The builder's spatial reference. |
Remarks
The SpatialReference cannot be changed after instantiation.
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
PolygonBuilder(Polygon)
Initializes a new instance of the PolygonBuilder class by copying the parts from the specified Polygon.
Declaration
public PolygonBuilder(Polygon polygon)
Parameters
Type | Name | Description |
---|---|---|
Polygon | polygon | A polygon used to initialize the new builder. |
Remarks
The SpatialReference of the new polygon builder will match that of the given Polygon. Use this constructor in workflows that create a modified version of an existing geometry. Polygons with curves are supported.
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 |
PolygonBuilder(IEnumerable<MapPoint>, SpatialReference)
Initializes a new instance of the PolygonBuilder class.
Declaration
public PolygonBuilder(IEnumerable<MapPoint> points, SpatialReference spatialReference = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<MapPoint> | points | Points for the first part |
SpatialReference | spatialReference | Spatial reference of the Polygon |
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.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
PolygonBuilder(IEnumerable<IEnumerable<MapPoint>>, SpatialReference)
Initializes a new instance of the PolygonBuilder class.
Declaration
public PolygonBuilder(IEnumerable<IEnumerable<MapPoint>> points, SpatialReference spatialReference = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<MapPoint>> | points | Points for the parts in the polygon |
SpatialReference | spatialReference | Spatial reference of the Polygon |
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.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
PolygonBuilder(IEnumerable<Segment>, SpatialReference)
Initializes a new instance of the PolygonBuilder class.
Declaration
public PolygonBuilder(IEnumerable<Segment> part, SpatialReference spatialReference = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Segment> | part | The Polygon part |
SpatialReference | spatialReference | SpatialReference of the PolygonBuilder |
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.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
PolygonBuilder(IEnumerable<IEnumerable<Segment>>, SpatialReference)
Initializes a new instance of the PolygonBuilder class.
Declaration
public PolygonBuilder(IEnumerable<IEnumerable<Segment>> parts, SpatialReference spatialReference = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<Segment>> | parts | The Polygon part |
SpatialReference | spatialReference | SpatialReference of the PolygonBuilder |
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.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |