Workbook.SeriesCount

Syntax

SeriesCount: Number;

Description

The SeriesCount property sets the number of series in the workbook.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

	var getSeriesCountButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Number of Series", //Text      
		Click: PP.Delegate(onClickGetSeriesCount)
	});
	function onClickGetSeriesCount() {
		var nSeries = wbk.getSeriesCount();
		alert(Number of series: ' + nSeries);
	} 

After executing the example the Number of Series button is placed in HTML page. Clicking this button brings up a message that shows the number of series in the book.

See also:

Workbook