ICustomXmlPartCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface ICustomXmlPartCollection extends IGenericCollection<ICustomXmlPart>

Represents collection of custom xml parts.

Methods

MethodDescription
get_Item(int index)Returns the element at the specified index.
add(byte[] xmlData)Adds new custom xml part.
add(String xmlString)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.

get_Item(int index)

public abstract ICustomXmlPart get_Item(int index)

Returns the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to get.

Returns: ICustomXmlPart - The element at the specified index.

add(byte[] xmlData)

public abstract ICustomXmlPart add(byte[] xmlData)

Adds new custom xml part.

Parameters:

ParameterTypeDescription
xmlDatabyte[]The xml data of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

add(String xmlString)

public abstract ICustomXmlPart add(String xmlString)

Adds new custom xml part.

Parameters:

ParameterTypeDescription
xmlStringjava.lang.StringThe xml string of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

add(InputStream inputStream)

public abstract ICustomXmlPart add(InputStream inputStream)

Adds new custom xml part.

Parameters:

ParameterTypeDescription
inputStreamjava.io.InputStreamThe inputStream with xml data of new part to be added.

Returns: ICustomXmlPart - Created custom xml part.

removeAt(int index)

public abstract void removeAt(int index)

Removes custom xml part at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to remove.

remove(ICustomXmlPart item)

public abstract boolean remove(ICustomXmlPart item)

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

Parameters:

ParameterTypeDescription
itemICustomXmlPartThe custom xml part to remove.

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

clear()

public abstract void clear()

Removes all items from the collection.