public class CustomXmlPartCollection extends java.lang.Object implements ICustomXmlPartCollection
Represents collection of custom xml parts.
Modifier and Type | Method and Description |
---|---|
ICustomXmlPart |
add(byte[] xmlData)
Adds new custom xml part.
|
ICustomXmlPart |
add(java.io.InputStream inputStream)
Adds new custom xml part.
|
ICustomXmlPart |
add(java.lang.String xmlString)
Adds new custom xml part.
|
void |
clear()
Removes all items from the collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copy to specified array.
|
ICustomXmlPart |
get_Item(int index)
Returns the element at the specified index.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICustomXmlPart> |
iterator()
Returns an enumerator that iterates through the collection.
|
boolean |
remove(ICustomXmlPart item)
Removes the first occurrence of a specific object from the collection.
|
void |
removeAt(int index)
Removes custom xml part at the specified index.
|
int |
size()
Returns count of custom xml parts in the collection.
|
public final ICustomXmlPart get_Item(int index)
Returns the element at the specified index.
get_Item
in interface ICustomXmlPartCollection
index
- The zero-based index of the element to get.com.aspose.ms.System.ArgumentOutOfRangeException
- index is less than 0.-or-index is equal to or greater than Countpublic final int size()
Returns count of custom xml parts in the collection.
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<ICustomXmlPart>
public final ICustomXmlPart add(java.lang.String xmlString)
Adds new custom xml part.
add
in interface ICustomXmlPartCollection
xmlString
- The xml string of new part to be added.com.aspose.ms.System.ArgumentNullException
- xmlString is null
.com.aspose.ms.System.ArgumentException
- xmlString is empty or xml-data is invalid.public final ICustomXmlPart add(byte[] xmlData)
Adds new custom xml part.
add
in interface ICustomXmlPartCollection
xmlData
- The xml data of new part to be added.com.aspose.ms.System.ArgumentNullException
- xmlData is null
.com.aspose.ms.System.ArgumentException
- xmlData is empty or invalid.public final ICustomXmlPart add(java.io.InputStream inputStream)
Adds new custom xml part.
add
in interface ICustomXmlPartCollection
inputStream
- The inputStream with xml data of new part to be added.com.aspose.ms.System.ArgumentNullException
- inputStream is null
.com.aspose.ms.System.ArgumentException
- Data in inputStream is empty or invalid.public final void removeAt(int index)
Removes custom xml part at the specified index.
removeAt
in interface ICustomXmlPartCollection
index
- The zero-based index of the element to remove.com.aspose.ms.System.ArgumentOutOfRangeException
- index is less than 0.-or-index is equal to or greater than Countpublic final boolean remove(ICustomXmlPart item)
Removes the first occurrence of a specific object from the collection.
remove
in interface ICustomXmlPartCollection
item
- The custom xml part to remove.true
if item is successfully removed; otherwise, false
.com.aspose.ms.System.ArgumentNullException
- item is null
.public final void clear()
Removes all items from the collection.
clear
in interface ICustomXmlPartCollection
public final void copyTo(com.aspose.ms.System.Array array, int index)
Copy to specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<ICustomXmlPart>
array
- Array to copy to.index
- Index to begin copying.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<ICustomXmlPart>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<ICustomXmlPart>
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICustomXmlPart> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ICustomXmlPart>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<ICustomXmlPart>
iterator
in interface java.lang.Iterable<ICustomXmlPart>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.