|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.documents.markup.CustomXmlPartCollection
public class CustomXmlPartCollection
Represents a collection of Custom XML Parts. The items are Document.getCustomXmlParts()
property.
see also CustomXmlPart
.
see also Document.getCustomXmlParts()
Constructor Summary | |
---|---|
CustomXmlPartCollection(Document doc)
Initializes an instance of this class. |
Method Summary | |
---|---|
void |
add(CustomXmlPart part)
Adds an item to the collection. |
void |
clear()
Removes all elements from the collection. |
CustomXmlPartCollection |
deepClone()
Makes a deep copy of this collection and its items. |
CustomXmlPart |
get(int index)
Gets an item at the specified index. |
CustomXmlPart |
getById(java.lang.String id)
Finds and returns a custom XML part by its identifier. |
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,
CustomXmlPart value)
Sets an item at the specified index. |
Constructor Detail |
---|
public CustomXmlPartCollection(Document doc)
doc
- DocumentMethod Detail |
---|
public int getCount()
public CustomXmlPart get(int index)
index
- Zero-based index of the item.
public void set(int index, CustomXmlPart value)
index
- Zero-based index of the item.value
- CustomXmlPartpublic java.util.Iterator iterator()
public void add(CustomXmlPart part)
part
- The custom XML part to add.public void removeAt(int index)
index
- The zero based index.public void clear()
public CustomXmlPart getById(java.lang.String id)
id
- Case-sensitive string that identifies the custom XML part.
public CustomXmlPartCollection deepClone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |