com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IPortionCollection

  • All Superinterfaces:
    com.aspose.ms.System.Collections.IEnumerable<IPortion>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>, java.lang.Iterable<IPortion>
    All Known Implementing Classes:
    PortionCollection


    public interface IPortionCollection
    extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>

    Represents a collection of a portions.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(IPortion value)
      Adds a Portion to the end of collection.
      void clear()
      Removes all elements from the collection.
      boolean contains(IPortion item)
      Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.
      IPortion get_Item(int index)
      Gets the element at the specified index.
      int getCount()
      Gets the number of elements actually contained in the collection.
      int indexOf(IPortion item)
      Determines the index of a specific portion in collection.
      void insert(int index, IPortion value)
      Inserts a Portion into the collection at the specified index.
      boolean remove(IPortion item)
      Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.
      void removeAt(int index)
      Removes the element at the specified index of the collection.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • get_Item

        IPortion get_Item(int index)

        Gets the element at the specified index.

      • getCount

        int getCount()

        Gets the number of elements actually contained in the collection. Read-only int.

      • add

        void add(IPortion value)

        Adds a Portion to the end of collection.

        Parameters:
        value - The Portion to be added to the end of the collection.
      • indexOf

        int indexOf(IPortion item)

        Determines the index of a specific portion in collection.

        Parameters:
        item - The portion to locate in the collection.
        Returns:
        The index of item if found in the collection; otherwise, -1.
      • insert

        void insert(int index,
                    IPortion value)

        Inserts a Portion into the collection at the specified index.

        Parameters:
        index - The zero-based index at which Portion should be inserted.
        value - The Portion to insert.
      • clear

        void clear()

        Removes all elements from the collection.

      • contains

        boolean contains(IPortion item)

        Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.

        Parameters:
        item - The object to locate in the System.Collections.Generic.ICollection`1.
        Returns:
        true if item is found in the System.Collections.Generic.ICollection`1; otherwise, false.
      • remove

        boolean remove(IPortion item)

        Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.

        Parameters:
        item - The object to remove from the System.Collections.Generic.ICollection`1.
        Returns:
        true if item was successfully removed from the System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection`1.
        Throws:
        com.aspose.ms.System.NotSupportedException - The System.Collections.Generic.ICollection`1 is read-only.
      • removeAt

        void removeAt(int index)

        Removes the element at the specified index of the collection.

        Parameters:
        index - The zero-based index of the element to remove.