In SpreadJS, each sheet area consists of multiple cells. You can return information about many aspects of the cells, including information about specific cells.
For example, you can get an instance of a cell by specifying its row index and column index.
sheet.getCell(1, 1, GC.Spread.Sheets.SheetArea.viewport);
You also can get a series of cells in a range of the sheet area.
sheet.getRange(1, 1, 10, 10, GC.Spread.Sheets.SheetArea.viewport);
If you want to get a cell's position, width, or height, use the getCellRect method. This method returns the rectangle of the cell.
sheet.getCellRect(1, 1, GC.Spread.Sheets.SheetArea.viewport);
The spread provides a referenceStyle property. It sets the ReferenceStyle enumeration, which provides two settings:
The property sets the style of cell formulas and its default value is ReferenceStyle.a1. The appearance is the same as Excel. Use the following code to change the setting:
spread.options.referenceStyle = GC.Spread.Sheets.ReferenceStyle.r1c1;
The sheet has an allowCellOverflow property; its default value is false. When this property's value has been set to true, the cell's data will overflow into adjacent empty cells. Use the following code to change the property's value:
sheet.options.allowCellOverflow = true;
The reference style is defined as 'A1' and 'R1C1', the rows and the columns on the worksheet are numbered.
If you change the reference style, the formula's reference will change too.