Share via


GeoPolygonCollection Class

Definition

Represents a geometry that is composed of multiple GeoPolygon.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoPolygon>, System.Collections.Generic.IReadOnlyCollection<Azure.Core.GeoJson.GeoPolygon>, System.Collections.Generic.IReadOnlyList<Azure.Core.GeoJson.GeoPolygon>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoPolygonCollection = class
    inherit GeoObject
    interface IReadOnlyList<GeoPolygon>
    interface seq<GeoPolygon>
    interface IEnumerable
    interface IReadOnlyCollection<GeoPolygon>
Public NotInheritable Class GeoPolygonCollection
Inherits GeoObject
Implements IEnumerable(Of GeoPolygon), IReadOnlyCollection(Of GeoPolygon), IReadOnlyList(Of GeoPolygon)
Inheritance
GeoPolygonCollection
Attributes
Implements

Constructors

GeoPolygonCollection(IEnumerable<GeoPolygon>, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Initializes new instance of GeoPolygonCollection.

GeoPolygonCollection(IEnumerable<GeoPolygon>)

Initializes new instance of GeoPolygonCollection.

Properties

BoundingBox

Represents information about the coordinate range of the GeoObject.

(Inherited from GeoObject)
Coordinates

Returns a view over the coordinates array that forms this geometry.

Count

Gets the number of elements in the collection.

Item[Int32]

Gets the element at the specified index in the read-only list.

Type

Gets the GeoJSON type of this object.

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

ToString()

Converts an instance of GeoObject to a GeoJSON representation.

(Inherited from GeoObject)
TryGetCustomProperty(String, Object)

Tries to get a value of a custom property associated with the GeoObject.

(Inherited from GeoObject)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to