public class CustomPartCollection
extends java.lang.Object
implements java.lang.Iterable
CustomPart 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 access custom parts related to the OOXML package via the Document.getPackageCustomParts() / Document.setPackageCustomParts(com.aspose.words.CustomPartCollection) property.
| Modifier and Type | Method and Description |
|---|---|
void |
add(CustomPart part)
Adds an item to the collection.
|
void |
clear()
Removes all elements from the collection.
|
CustomPartCollection |
deepClone()
Makes a deep copy of this collection and its items.
|
CustomPart |
get(int index)
Gets an item at the specified index.
|
int |
getCount()
Gets the number of elements contained in the collection.
|
java.util.Iterator |
iterator()
Returns an iterator object that can be used to iterate over all items in the collection.
|
void |
removeAt(int index)
Removes an item at the specified index.
|
void |
set(int index,
CustomPart value)
Sets an item at the specified index.
|
public int getCount()
public CustomPart get(int index)
index - Zero-based index of the item.public void set(int index,
CustomPart value)
index - Zero-based index of the item.value - An item at the specified index.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic void add(CustomPart part)
part - The item to add.public void removeAt(int index)
index - The zero based index.public void clear()
public CustomPartCollection deepClone()