add method

This method inserts one or more rows. When inserting several rows, this method returns the last inserted row.

Defined in

TextTableRows

Syntax

public TextTableRow add(int rowIndex, int count) throws SymphonyException
public TextTableRow add(int rowIndex) throws SymphonyException
public TextTableRow add() throws SymphonyException

Parameters

int rowIndex

Specifies the index of a row before which new rows are inserted. The range of the index is from 1 to row number +1. If the index is row number +1, this method insert several rows specified by the count parameter after the last row.

int count

Specifies the number of rows to be added. The default value is 1. If the number of rows is out of bounds, this method throws an exception.

The add() method inserts a row after the last row.

Return Value

tableRow

A TextTableRow object that represents a row.

See examples

Example: add method