
## 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/python-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.package_custom_parts](../../aspose.words/document/package_custom_parts/) property.




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

### Indexers

| Name | Description |
| --- | --- |
| [``__getitem__(index)``](./__getitem__/#int) | Gets or sets an item at the specified index. |

### Properties

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

### 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. |
|[ remove_at(index)](./remove_at/#int) | Removes an item at the specified index. |

### See Also

* module [aspose.words.markup](../)
* class [CustomPart](../custompart/)
* property [Document.package_custom_parts](../../aspose.words/document/package_custom_parts/)

