com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TableElementCollection<T1 extends ITableElement>

  • All Implemented Interfaces:
    Iterable<T1>


    public final class TableElementCollection<T1 extends ITableElement>
    extends Object
    implements Iterable<T1>

    Represents a collection of elements absorbed from existing table

    T: Instance of type implementing ITableElement

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addItem(ITableElement element)
      Adds the text fragment element at the specified index.
      void clear()
      Clears all items from the collection.
      boolean containsItem(T1 item)
      Determines whether the collection contains a specific value.
      void copyToTArray(T1[] array, int index)
      Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array
      T1 get_Item(int index)
      Gets the text fragment element at the specified index.
      Object getSyncRoot()
      Gets an object that can be used to synchronize access to the collection.
      boolean isReadOnly()
      Gets a value indicating whether collection is read-only
      boolean isSynchronized()
      Gets a value indicating whether access to the collection is synchronized (thread safe).
      com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
      Returns an enumerator for the entire collection.
      com.aspose.ms.System.Collections.IEnumerator<T1> iterator()
      Returns an enumerator for the entire collection.
      boolean removeItem(T1 item)
      Deletes specified item from collection.
      int size()
      Gets the number of table elements actually contained in the collection.
    • Method Detail

      • size

        public int size()

        Gets the number of table elements actually contained in the collection.

        Returns:
        int value
      • getSyncRoot

        public Object getSyncRoot()

        Gets an object that can be used to synchronize access to the collection.

        Returns:
        SyncRoot Object
      • isSynchronized

        public boolean isSynchronized()

        Gets a value indicating whether access to the collection is synchronized (thread safe).

        Returns:
        boolean value
      • isReadOnly

        public boolean isReadOnly()

        Gets a value indicating whether collection is read-only

        Returns:
        boolean value
      • addItem

        public void addItem(ITableElement element)

        Adds the text fragment element at the specified index.

        Parameters:
        element - ITableElement instance
      • iterator_Rename_Namesake

        public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Returns an enumerator for the entire collection.

        Returns:
        Enumerator object.
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator<T1> iterator()

        Returns an enumerator for the entire collection.

        Specified by:
        iterator in interface Iterable<T1 extends ITableElement>
        Returns:
        Enumerator object.
      • copyToTArray

        public void copyToTArray(T1[] array,
                                 int index)

        Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array

        Parameters:
        array - Array of objects which will be copied.
        index - Starting index from which copying will be started.
      • clear

        public void clear()

        Clears all items from the collection.

      • containsItem

        public boolean containsItem(T1 item)

        Determines whether the collection contains a specific value.

        Parameters:
        item - The object to locate in the collection
        Returns:
        true if item is found in the collection; otherwise, false.
      • removeItem

        public boolean removeItem(T1 item)

        Deletes specified item from collection.

        Parameters:
        item - The object to delete
        Returns:
        true if item was deleted from collection; otherwise, false.
      • get_Item

        public T1 get_Item(int index)

        Gets the text fragment element at the specified index.

        Parameters:
        index - Index within the collection.
        Returns:
        table element object.