This method inserts one or more columns in a table. When inserting several columns, this method returns the last inserted column.
Defined in
Syntax
public TextTableColumn add(int index, int count) throws SymphonyException public TextTableColumn add(int index) throws SymphonyException public TextTableColumn add() throws SymphonyException
Parameters
int index
Specifies the index of a column before which new columns are inserted. The range of the index is from 1 to column number +1. If the index is column number +1, this method insert several columns specified by the count parameter after the last column.
int count
Specifies the number of columns to be added. If the number of columns is out of bounds, this method throws an exception.
The add() method inserts a column after the last column.
See examples