Constructor Polygon
Polygon(IEnumerable<MapPoint>)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<MapPoint> part)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<MapPoint> | part | Points to be used for the first part. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Buffer list: Generate multiple individual buffers or a single unioned buffer around multiple points.
Convex hull list: Generate convex hull polygon(s) from multiple input geometries.
Create geometries: Create simple geometry types.
Polygon(IEnumerable<MapPoint>, SpatialReference)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<MapPoint> part, SpatialReference spatialReference)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.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 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Change viewpoint: Set the map view to a new viewpoint.
Polygon(IEnumerable<IEnumerable<MapPoint>>)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<IEnumerable<MapPoint>> parts)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<MapPoint>> | parts | The polygon parts. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Polygon(IEnumerable<IEnumerable<MapPoint>>, SpatialReference)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<IEnumerable<MapPoint>> parts, SpatialReference spatialReference)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<MapPoint>> | parts | The polygon parts. | 
| SpatialReference | spatialReference | The spatial reference of the polygon. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Polygon(IEnumerable<Segment>)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<Segment> part)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<Segment> | part | Points to be used for the first part. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Polygon(IEnumerable<Segment>, SpatialReference)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<Segment> part, SpatialReference spatialReference)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.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 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Polygon(IEnumerable<IEnumerable<Segment>>)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<IEnumerable<Segment>> parts)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<Segment>> | parts | The polygon parts. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Polygon(IEnumerable<IEnumerable<Segment>>, SpatialReference)
Initializes a new instance of the Polygon class.
Declaration
public Polygon(IEnumerable<IEnumerable<Segment>> parts, SpatialReference spatialReference)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<Segment>> | parts | The polygon parts. | 
| SpatialReference | spatialReference | The spatial reference of the polygon. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 |