addTo method

This method creates a new sheet.

Defined in

Sheets

Syntax

public Sheet addTo(Sheet sheet)  throws SymphonyException
public Sheet addTo(Sheet sheet, int count)  throws SymphonyException
public void addTo(Sheet sheet_pos, int count, boolean beforeOrAfter) throws SymphonyException

Parameters

Sheet sheet_pos

Specifies the target sheet before or after which the new sheet is added.

int count

Specifies the number of sheets to be added. The default value is 1.

boolean beforeOrAfter

Specifies true to add the new sheet before the parameter sheet_pos, or false to add the new sheet after the parameter sheet_pos. The default value is true.

Usage

This method throws an exception if:
  • The target sheet is in another spreadsheet.
  • The target sheet is null.

See examples

Example: addTo method