ICustomXmlPartCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface ICustomXmlPartCollection extends IGenericCollection<ICustomXmlPart>
Represents collection of custom xml parts.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
index | int | The 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:
Parameter | Type | Description |
---|---|---|
xmlData | byte[] | 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:
Parameter | Type | Description |
---|---|---|
xmlString | java.lang.String | The 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:
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 abstract 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 abstract 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 abstract void clear()
Removes all items from the collection.