CustomXmlPartCollection class
CustomXmlPartCollection class
Represents a collection of Custom XML Parts. The items are CustomXmlPart objects.
To learn more, visit the Structured Document Tags or Content Control documentation article.
You do not normally need to create instances of this class. You can access custom XML data
stored in a document via the Document.custom_xml_parts property.
Constructors
Indexers
Properties
| Name | Description |
|---|
| count | Gets the number of elements contained in the collection. |
Methods
| Name | Description |
|---|
| add(part) | Adds an item to the collection. |
| add(id, xml) | Creates a new XML part with the specified XML and adds it to the collection. |
| clear() | Removes all elements from the collection. |
| clone() | Makes a deep copy of this collection and its items. |
| get_by_id(id) | Finds and returns a custom XML part by its identifier. |
| remove_at(index) | Removes an item at the specified index. |
See Also