com.aspose.cells

Class ListObjectCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class ListObjectCollection 
    extends CollectionBase

Represents a collection of ListObject objects in the worksheet.

Property Getters/Setters Summary
intgetCount()
ListObjectget(int index)
Gets the ListObject by index.
ListObjectget(java.lang.String tableName)
Gets the ListObject by specified name.
 
Method Summary
intadd(int startRow, int startColumn, int endRow, int endColumn, boolean hasHeaders)
Adds a ListObject to the worksheet.
intadd(java.lang.Object value)
Reserved for internal use.
intadd(java.lang.String startCell, java.lang.String endCell, boolean hasHeaders)
Adds a ListObject to the worksheet.
voidclear()
booleancontains(java.lang.Object value)
Reserved for internal use.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveAt(int index)
voidupdateColumnName()
Update all column name of the tables.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
      • get

        public ListObject get(int index)
        
        Gets the ListObject by index.
        Parameters:
        index - The index.
        Returns:
        The ListObject
      • get

        public ListObject get(java.lang.String tableName)
        
        Gets the ListObject by specified name.
        Parameters:
        tableName - ListObject name.
        Returns:
        The ListObject
    • Method Detail

      • add

        public int add(int startRow, int startColumn, int endRow, int endColumn, boolean hasHeaders)
        Adds a ListObject to the worksheet.
        Parameters:
        startRow - The start row of the list range.
        startColumn - The start row of the list range.
        endRow - The start row of the list range.
        endColumn - The start row of the list range.
        hasHeaders - Whether the range has headers.
        Returns:
        The index of the new ListObject
      • add

        public int add(java.lang.String startCell, java.lang.String endCell, boolean hasHeaders)
        Adds a ListObject to the worksheet.
        Parameters:
        startCell - The start cell of the list range.
        endCell - The end cell of the list range.
        hasHeaders - Whether the range has headers.
        Returns:
        The index of the new ListObject
      • updateColumnName

        public void updateColumnName()
        Update all column name of the tables.
      • clear

        public void clear()
      • removeAt

        public void removeAt(int index)
      • iterator

        public java.util.Iterator iterator()
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.