
## CustomPartCollection class

Represents a collection of [CustomPart](../custompart/) objects.
To learn more, visit the [Structured Document Tags or Content Control](https://docs.aspose.com/words/nodejs-net/working-with-content-control-sdt/) documentation article.




### Remarks

You do not normally need to create instances of this class. You access custom parts 
related to the OOXML package via the [Document.packageCustomParts](../../aspose.words/document/packageCustomParts/) property.




### Constructors
| Name | Description |
| --- | --- |
| [CustomPartCollection()](./constructor/#default) | The default constructor. |

### Properties

| Name | Description |
| --- | --- |
| [count](./count/) | Gets the number of elements contained in the collection. |
| [this[]](./this[]/) |  |

### Methods

| Name | Description |
| --- | --- |
|[ add(part)](./add/#custompart) | Adds an item to the collection. |
|[ clear()](./clear/#default) | Removes all elements from the collection. |
|[ clone()](./clone/#default) | Makes a deep copy of this collection and its items. |
|[ removeAt(index)](./removeAt/#number) | Removes an item at the specified index. |

### See Also

* module [Aspose.Words.Markup](../)
* class [CustomPart](../custompart/)
* property [Document.packageCustomParts](../../aspose.words/document/packageCustomParts/)

