Прочетете на английски Редактиране

Споделяне чрез


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.

C#
public GeometryCollection();

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GeometryCollection(IEnumerable<Geometry>)

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

C#
public GeometryCollection(System.Collections.Generic.IEnumerable<System.Windows.Media.Geometry> collection);

Parameters

collection
IEnumerable<Geometry>

The collection of Geometry objects that make up the GeometryCollection.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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.

C#
public GeometryCollection(int capacity);

Parameters

capacity
Int32

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

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10