| ArrayList: Capacity (let) |
Sets the number of allocated elements in the array.
Public Property Let Capacity( ByVal RHS As Long )
The capacity cannot be set less than the number of items in the list. If the capacity is set to zero, then it is set to the default capacity (16).
| Exception Type | Condition |
|---|---|
| ArgumentException | The Capacity was set to a value that is less than Count. |
Read/Write.
Project VBCorLib Overview Class ArrayList Overview ArrayList Properties ArrayList Methods Capacity (get) Clear