aspose.cells

Class CellsDataTableFactory

Utility to build ICellsDataTable from custom objects for user's convenience.

Method Summary
functiongetInstance(vals, vertial)
Creates ICellsDataTable from given sequence of double values.
functiongetInstance(vals, columnNames)
Creates ICellsDataTable from given sequence of double values.
functiongetInstance(vals)
Creates ICellsDataTable from given 2D array.
functiongetInstance(vals, vertial)
Creates ICellsDataTable from given sequence of int values.
functiongetInstance(vals, columnNames)
Creates ICellsDataTable from given sequence of int values.
functiongetInstance(vals)
Creates ICellsDataTable from given 2D array.
functiongetInstance(vals, vertial)
Creates ICellsDataTable from given sequence of objects.
functiongetInstance(vals, columnNames)
Creates ICellsDataTable from given sequence of objects.
functiongetInstance(vals)
Creates ICellsDataTable from given 2D array.
functiongetInstance(collection)
Creates ICellsDataTable from given collection.
 

    • Method Detail

      • getInstance

        function getInstance(vals, columnNames)
        Creates ICellsDataTable from given sequence of int values.
        Parameters:
        vals: Number Array - int values to build table
        columnNames: String[] - Column names of the table. Its length can only be either 1(build table by the int values vertically) or length of the int values(build table by the int values horizontally)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals, vertial)
        Creates ICellsDataTable from given sequence of int values.
        Parameters:
        vals: Number Array - int values to build table
        vertial: boolean - whether build table by the int values vertiacally(true) or horizontally(false)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals, columnNames)
        Creates ICellsDataTable from given sequence of double values.
        Parameters:
        vals: Number Array - double values to build table
        columnNames: String[] - Column names of the table. Its length can only be either 1(build table by the double values vertically) or length of the double values(build table by the double values horizontally)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals, vertial)
        Creates ICellsDataTable from given sequence of double values.
        Parameters:
        vals: Number Array - double values to build table
        vertial: boolean - whether build table by the double values vertiacally(true) or horizontally(false)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals, columnNames)
        Creates ICellsDataTable from given sequence of objects.
        Parameters:
        vals: Object[] - objects to build table
        columnNames: String[] - Column names of the table. Its length can only be either 1(build table by the objects vertically) or length of the objects(build table by the objects horizontally)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals, vertial)
        Creates ICellsDataTable from given sequence of objects.
        Parameters:
        vals: Object[] - objects to build table
        vertial: boolean - whether build table by the objects vertiacally(true) or horizontally(false)
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals)
        Creates ICellsDataTable from given 2D array.
        Parameters:
        vals: int[][] - int values to build table
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals)
        Creates ICellsDataTable from given 2D array.
        Parameters:
        vals: double[][] - double values to build table
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(vals)
        Creates ICellsDataTable from given 2D array.
        Parameters:
        vals: Object[][] - objects to build table
        Returns:
        Instance of ICellsDataTable
      • getInstance

        function getInstance(collection)
        Creates ICellsDataTable from given collection.
        Parameters:
        collection: Collection - the collection to build table
        Returns:
        Instance of ICellsDataTable