com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class BehaviorCollection

  • java.lang.Object
    • com.aspose.slides.BehaviorCollection
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IBehavior>, com.aspose.ms.System.Collections.IEnumerable<IBehavior>, IBehaviorCollection, java.lang.Iterable<IBehavior>


    public class BehaviorCollection
    extends java.lang.Object
    implements IBehaviorCollection

    Represents collection of behavior effects.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(IBehavior item)
      Add new behavior to a collection.
      void clear()
      Removes all behaviors from a collection.
      boolean contains(IBehavior item)
      Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.
      void copyTo(IBehavior[] array, int arrayIndex)
      Copies the elements of the System.Collections.Generic.ICollection`1 to an Array, starting at a particular Array index.
      IBehavior get_Item(int index)
      Returns a behavior at the specified index.
      int getCount()
      Returns the number of behaviors in a collection.
      int indexOf(IBehavior item)
      Determines the index of a specific item in the System.Collections.Generic.IList`1.
      void insert(int index, IBehavior item)
      Inserts new behavior to a collection at the specified index.
      boolean isReadOnly()
      Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iterator()
      Returns an enumerator that iterates through the collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iteratorJava()
      Returns a java iterator for the entire collection.
      boolean remove(IBehavior item)
      Removes specified behavior from a collection.
      void removeAt(int index)
      Removes behavior from a collection at the specified index.
      void set_Item(int index, IBehavior value)
      Sets a behavior at the specified index.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getCount

        public final int getCount()

        Returns the number of behaviors in a collection. Read-only int.

        Specified by:
        getCount in interface IBehaviorCollection
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only. Read-only boolean.

        Returns:
        true if the System.Collections.Generic.ICollection`1 is read-only; otherwise, false.
      • add

        public final void add(IBehavior item)

        Add new behavior to a collection.

        Specified by:
        add in interface IBehaviorCollection
        Parameters:
        item - Behavior to add.
      • indexOf

        public final int indexOf(IBehavior item)

        Determines the index of a specific item in the System.Collections.Generic.IList`1.

        Specified by:
        indexOf in interface IBehaviorCollection
        Parameters:
        item - The object to locate in the System.Collections.Generic.IList`1.
        Returns:
        The index of item if found in the list; otherwise, -1.
      • insert

        public final void insert(int index,
                                 IBehavior item)

        Inserts new behavior to a collection at the specified index.

        Specified by:
        insert in interface IBehaviorCollection
        Parameters:
        index - Index where new behavior should be inserted.
        item - Behavior to insert.
      • copyTo

        public final void copyTo(IBehavior[] array,
                                 int arrayIndex)

        Copies the elements of the System.Collections.Generic.ICollection`1 to an Array, starting at a particular Array index.

        Parameters:
        array - The one-dimensional Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The Array must have zero-based indexing.
        arrayIndex - The zero-based index in array at which copying begins.
        Throws:
        com.aspose.ms.System.ArgumentNullException - array is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - arrayIndex is less than 0.
        com.aspose.ms.System.ArgumentException - The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.
      • remove

        public final boolean remove(IBehavior item)

        Removes specified behavior from a collection.

        Specified by:
        remove in interface IBehaviorCollection
        Parameters:
        item - Behavior to remove.
      • removeAt

        public final void removeAt(int index)

        Removes behavior from a collection at the specified index.

        Specified by:
        removeAt in interface IBehaviorCollection
        Parameters:
        index - Index of a behavior to remove.
      • clear

        public final void clear()

        Removes all behaviors from a collection.

        Specified by:
        clear in interface IBehaviorCollection
      • contains

        public final boolean contains(IBehavior item)

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

        Specified by:
        contains in interface IBehaviorCollection
        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.
      • get_Item

        public final IBehavior get_Item(int index)

        Returns a behavior at the specified index.

        Specified by:
        get_Item in interface IBehaviorCollection
        Parameters:
        index - Index of a behavior to return.
        Returns:
        Animation behavior.
      • set_Item

        public final void set_Item(int index,
                                   IBehavior value)

        Sets a behavior at the specified index.

        Specified by:
        set_Item in interface IBehaviorCollection
        Parameters:
        index - Index of a behavior to return.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IBehavior>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IBehavior>
        Specified by:
        iterator in interface java.lang.Iterable<IBehavior>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • iteratorJava

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IBehavior> iteratorJava()

        Returns a java iterator for the entire collection.

        Returns:
        An Iterator for the entire collection.