CustomXmlPartCollection
CustomXmlPartCollection class
Represents collection of custom xml parts.
add
| Name | Description |
|---|
| add (String) | Adds new custom xml part. |
Parameters:
| Name | Type | Description |
|---|
| xmlString | String | The xml string of new part to be added. |
Returns:
CustomXmlPart
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentException | xmlString is empty or xml-data is invalid. |
add
| Name | Description |
|---|
| add (byte[]) | Adds new custom xml part. |
Parameters:
| Name | Type | Description |
|---|
| xmlData | byte[] | The xml data of new part to be added. |
Returns:
CustomXmlPart
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentException | xmlData is empty or invalid. |
addFromStream
| Name | Description |
|---|
| addFromStream (CustomXmlPartCollection, ReadStream, Function) | Adds new custom xml part. |
Parameters:
| Name | Type | Description |
|---|
| customxmlpartcollection | CustomXmlPartCollection | link to self |
| inputStream | ReadStream | The inputStream with xml data of new part to be added. |
| callback | Function | callback(error, Returns) - Callback to be called when the method has completed |
Returns:
CustomXmlPart
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentException | Data in inputStream is empty or invalid. |
clear
| Name | Description |
|---|
| clear () | Removes all items from the collection. |
getSyncRoot
| Name | Description |
|---|
| getSyncRoot () | Returns a synchronization root. Read-only Object. |
Returns:
Object
get_Item
| Name | Description |
|---|
| get_Item (int) | Returns the element at the specified index. |
Parameters:
| Name | Type | Description |
|---|
| index | int | The zero-based index of the element to get. |
Returns:
CustomXmlPart
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentOutOfRangeException | index is less than 0.-or-index is equal to or greater than Count |
isSynchronized
| Name | Description |
|---|
| isSynchronized () | Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean. |
Returns:
boolean
iterator
| Name | Description |
|---|
| iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
| Name | Description |
|---|
| iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
| Name | Description |
|---|
| remove (CustomXmlPart) | Removes the first occurrence of a specific object from the collection. |
Parameters:
| Name | Type | Description |
|---|
| item | CustomXmlPart | The custom xml part to remove. |
Returns:
boolean
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentNullException | item is null. |
removeAt
| Name | Description |
|---|
| removeAt (int) | Removes custom xml part at the specified index. |
Parameters:
| Name | Type | Description |
|---|
| index | int | The zero-based index of the element to remove. |
Error
| Error | Condition |
|---|
| com.aspose.ms.System.ArgumentOutOfRangeException | index is less than 0.-or-index is equal to or greater than Count |
size
| Name | Description |
|---|
| size () | Returns count of custom xml parts in the collection. Read-only int. |
Returns:
int