CustomXmlPartCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ICustomXmlPartCollection, com.aspose.slides.IDOMObject

public class CustomXmlPartCollection implements ICustomXmlPartCollection, IDOMObject

Represents collection of custom xml parts.

Methods

Method Description
get_Item(int index) Returns the element at the specified index.
size() Returns count of custom xml parts in the collection.
add(String xmlString) Adds new custom xml part.
add(byte[] xmlData) Adds new custom xml part.
add(InputStream inputStream) Adds new custom xml part.
removeAt(int index) Removes custom xml part at the specified index.
remove(ICustomXmlPart item) Removes the first occurrence of a specific object from the collection.
clear() Removes all items from the collection.
copyTo(System.Array array, int index) Copy to specified array.
isSynchronized() Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot() Returns a synchronization root.
iterator() Returns an enumerator that iterates through the collection.
iteratorJava() Returns a java iterator for the entire collection.
getParent_Immediate()

get_Item(int index)

public final ICustomXmlPart get_Item(int index)

Returns the element at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the element to get.

Returns: ICustomXmlPart - The element at the specified index.

size()

public final int size()

Returns count of custom xml parts in the collection. Read-only int.

Returns: int

add(String xmlString)

public final ICustomXmlPart add(String xmlString)

Adds new custom xml part.

Parameters:

Parameter Type Description
xmlString java.lang.String The xml string of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

add(byte[] xmlData)

public final ICustomXmlPart add(byte[] xmlData)

Adds new custom xml part.

Parameters:

Parameter Type Description
xmlData byte[] The xml data of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

add(InputStream inputStream)

public final ICustomXmlPart add(InputStream inputStream)

Adds new custom xml part.

Parameters:

Parameter Type Description
inputStream java.io.InputStream The inputStream with xml data of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

removeAt(int index)

public final void removeAt(int index)

Removes custom xml part at the specified index.

Parameters:

Parameter Type Description
index int The zero-based index of the element to remove.

remove(ICustomXmlPart item)

public final boolean remove(ICustomXmlPart item)

Removes the first occurrence of a specific object from the collection.

Parameters:

Parameter Type Description
item ICustomXmlPart The custom xml part to remove.

Returns: boolean - true if item is successfully removed; otherwise, false.

clear()

public final void clear()

Removes all items from the collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copy to specified array.

Parameters:

Parameter Type Description
array com.aspose.ms.System.Array Array to copy to.
index int Index to begin copying.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object

iterator()

public final System.Collections.Generic.IGenericEnumerator<ICustomXmlPart> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICustomXmlPart> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ICustomXmlPart> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICustomXmlPart> - An java.util.Iterator for the entire collection.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject