com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class RowCollection

  • java.lang.Object
    • com.aspose.slides.RowCollection
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IRow>, com.aspose.ms.System.Collections.ICollection<IRow>, com.aspose.ms.System.Collections.IEnumerable<IRow>, IGenericCollection<IRow>, IRowCollection, java.lang.Iterable<IRow>


    public final class RowCollection
    extends java.lang.Object
    implements IRowCollection

    Represents table row collection.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IRow[] addClone(IRow templ, boolean withAttachedRows)
      Creates a copy of the specified template row and inserts it at the bottom of a table.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies all elements from the collection to the specified array.
      IRow get_Item(int index)
      Returns the row at the specified index.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      java.lang.Object getSyncRoot()
      Returns a synchronization root.
      IRow[] insertClone(int index, IRow templ, boolean withAttachedRows)
      Creates a copy of the specified template row and insert it at the specified position in a table.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IRow> iterator()
      Returns an enumerator that iterates through the collection.
      void removeAt(int firstRowIndex, boolean withAttachedRows)
      Removes a row at the specified position from a table.
      int size()
      Gets the number of rows actually contained in the collection.
      • 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

      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.

      • size

        public final int size()

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

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IRow>
      • get_Item

        public final IRow get_Item(int index)

        Returns the row at the specified index. Read-only Row.

        Specified by:
        get_Item in interface IRowCollection
      • addClone

        public final IRow[] addClone(IRow templ,
                                     boolean withAttachedRows)

        Creates a copy of the specified template row and inserts it at the bottom of a table.

        Specified by:
        addClone in interface IRowCollection
        Parameters:
        templ - Row which is used as a template.
        withAttachedRows - True to copy also all rows attached to the template row.
        Returns:
        Added rows.
      • insertClone

        public final IRow[] insertClone(int index,
                                        IRow templ,
                                        boolean withAttachedRows)

        Creates a copy of the specified template row and insert it at the specified position in a table.

        Specified by:
        insertClone in interface IRowCollection
        Parameters:
        index - Index of a new row.
        templ - Row which is used as a template.
        withAttachedRows - True to copy also all rows attached to the template row.
        Returns:
        Inserted rows.
      • removeAt

        public final void removeAt(int firstRowIndex,
                                   boolean withAttachedRows)

        Removes a row at the specified position from a table.

        Specified by:
        removeAt in interface IRowCollection
        Parameters:
        firstRowIndex - Index of a row to delete.
        withAttachedRows - True to delete also all attached rows.
      • iterator

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

        Returns an enumerator that iterates through the collection.

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

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int index)

        Copies all elements from the collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IRow>
        Parameters:
        array - Target array.
        index - Starting index in the target array.
      • isSynchronized

        public final boolean isSynchronized()

        Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IRow>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IRow>