CustomPartCollection class
CustomPartCollection class
Represents a collection of CustomPart objects. To learn more, visit the Structured Document Tags or Content Control 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 property.
Constructors
| Name | Description |
|---|---|
| CustomPartCollection() | The default constructor. |
Indexers
| Name | Description |
|---|---|
__getitem__(index) | Gets or sets an item at the specified index. |
Properties
| Name | Description |
|---|---|
| count | Gets the number of elements contained in the collection. |
Methods
| Name | Description |
|---|---|
| add(part) | Adds an item to the collection. |
| clear() | Removes all elements from the collection. |
| clone() | Makes a deep copy of this collection and its items. |
| remove_at(index) | Removes an item at the specified index. |
See Also
- module aspose.words.markup
- class CustomPart
- property Document.package_custom_parts