---
title: "Collection&lt;(Of &lt;(T&gt;)&gt;) Constructor (Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601_ctor_1_25c8efd2.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Collection&lt;T&gt; Constructor (Int32)
 
Creates and initializes an instance of the [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md) class with the specified initial capacity.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub New ( _capacity As Integer _
)
```
 
```csharp
public Collection(int capacity
)
```
 
### Parameters
 
 - capacity
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
The number of items that the new collection can initially store.
   
## See Also

### Reference

- [Collection&lt;T&gt; Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md)
- [Collection&lt;T&gt; Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601_ctor.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
