com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ICustomXmlPartCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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.
      ICustomXmlPart get_Item(int index)
      Returns the element at the specified index.
      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.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface com.aspose.ms.System.Collections.ICollection

        copyTo, getSyncRoot, isSynchronized, size
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • get_Item

        ICustomXmlPart get_Item(int index)

        Returns the element at the specified index.

        Parameters:
        index - The zero-based index of the element to get.
        Returns:
        The element at the specified index.
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - index is less than 0.-or-index is equal to or greater than Count
      • add

        ICustomXmlPart add(byte[] xmlData)

        Adds new custom xml part.

        Parameters:
        xmlData - The xml data of new part to be added.
        Returns:
        Created custom xml part.
        Throws:
        com.aspose.ms.System.ArgumentNullException - xmlData is null.
        com.aspose.ms.System.ArgumentException - xmlData is empty or invalid.
      • add

        ICustomXmlPart add(java.lang.String xmlString)

        Adds new custom xml part.

        Parameters:
        xmlString - The xml string of new part to be added.
        Returns:
        Created custom xml part.
        Throws:
        com.aspose.ms.System.ArgumentNullException - xmlString is null.
        com.aspose.ms.System.ArgumentException - xmlString is empty or xml-data is invalid.
      • add

        ICustomXmlPart add(java.io.InputStream inputStream)

        Adds new custom xml part.

        Parameters:
        inputStream - The inputStream with xml data of new part to be added.
        Returns:
        Created custom xml part.
        Throws:
        com.aspose.ms.System.ArgumentNullException - inputStream is null.
        com.aspose.ms.System.ArgumentException - Data in inputStream is empty or invalid.
      • removeAt

        void removeAt(int index)

        Removes custom xml part at the specified index.

        Parameters:
        index - The zero-based index of the element to remove.
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - index is less than 0.-or-index is equal to or greater than Count
      • remove

        boolean remove(ICustomXmlPart item)

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

        Parameters:
        item - The custom xml part to remove.
        Returns:
        true if item is successfully removed; otherwise, false.
        Throws:
        com.aspose.ms.System.ArgumentNullException - item is null.
      • clear

        void clear()

        Removes all items from the collection.