Show / Hide Table of Contents

Constructor PolygonBuilder

PolygonBuilder(SpatialReference)

Initializes a new instance of the PolygonBuilder class.

Declaration
public PolygonBuilder(SpatialReference spatialReference)
Parameters
Type Name Description
SpatialReference spatialReference

The builder's spatial reference.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
Relevant samples
Identify graphics: Display an alert message when a graphic is clicked.

PolygonBuilder(Polygon)

Initializes a new instance of the PolygonBuilder class from a polygon.

Declaration
public PolygonBuilder(Polygon polygon)
Parameters
Type Name Description
Polygon polygon

A polygon object.

Remarks

Prior to v100.12, only polygons without curves could be used; passing in a polygon where HasCurves is true would throw an exception.

From v100.12, polygons with curves are supported.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

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
IEnumerable<MapPoint> points

Points for the first part

SpatialReference spatialReference

Spatial reference of the Polygon

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.14

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
IEnumerable<IEnumerable<MapPoint>> points

Points for the parts in the polygon

SpatialReference spatialReference

Spatial reference of the Polygon

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.14

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
IEnumerable<Segment> part

The Polygon part

SpatialReference spatialReference

SpatialReference of the PolygonBuilder

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.14

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
IEnumerable<IEnumerable<Segment>> parts

The Polygon part

SpatialReference spatialReference

SpatialReference of the PolygonBuilder

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.14
In This Article
Back to top Copyright © 2022 Esri.