TabSheetObject.getRange

Syntax

getRange();

Description

The getRange method gets the range of cells within a table object.

Comments

This method returns an object of the PP.Ui.TabSheetRange type.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component) and the TabSheetObject component (see the TabSheetObject Constructor page). Set the asterisk sign * in the cell that contains top left corner of the object, and select the range within this object:

// Get object container
var coord = tabSheetObject.getCoord();
// Set asterisk sign * in the cell, in which the top left object corner is located
tabSheet.setCellValue("*", coord.rowIndex, coord.colIndex);
// Get cell range occupied by the object in table
var range = tabSheetObject.getRange();
// Select the obtained range
range.select();

After executing the example the asterisk sign * is written to the B0 cell that contains top left corner of the object, and the B0-B1 range included into the object, is selected:

See also:

TabSheetObject