GeometryCollection Constructors

Definition

Initializes a new instance of the GeometryCollection class.

Overloads

GeometryCollection()

Initializes a new instance of the GeometryCollection class.

GeometryCollection(IEnumerable<Geometry>)

Initializes a new instance of the GeometryCollection class with the specified collection of Geometry objects.

GeometryCollection(Int32)

Initializes a new instance of the GeometryCollection class with the specified capacity, or the number of Geometry objects the collection is initially capable of storing.

GeometryCollection()

Initializes a new instance of the GeometryCollection class.

public:
 GeometryCollection();
public GeometryCollection ();
Public Sub New ()

Applies to

GeometryCollection(IEnumerable<Geometry>)

Initializes a new instance of the GeometryCollection class with the specified collection of Geometry objects.

public:
 GeometryCollection(System::Collections::Generic::IEnumerable<System::Windows::Media::Geometry ^> ^ collection);
public GeometryCollection (System.Collections.Generic.IEnumerable<System.Windows.Media.Geometry> collection);
new System.Windows.Media.GeometryCollection : seq<System.Windows.Media.Geometry> -> System.Windows.Media.GeometryCollection
Public Sub New (collection As IEnumerable(Of Geometry))

Parameters

collection
IEnumerable<Geometry>

The collection of Geometry objects that make up the GeometryCollection.

Applies to

GeometryCollection(Int32)

Initializes a new instance of the GeometryCollection class with the specified capacity, or the number of Geometry objects the collection is initially capable of storing.

public:
 GeometryCollection(int capacity);
public GeometryCollection (int capacity);
new System.Windows.Media.GeometryCollection : int -> System.Windows.Media.GeometryCollection
Public Sub New (capacity As Integer)

Parameters

capacity
Int32

The number of Geometry objects that the collection is initially capable of storing.

Applies to