SpreadJS Documentation
getSheetFromName Method
The sheet name.
Gets the sheet with the specified name.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var value; // Type: Sheet
value = instance.getSheetFromName(name);
function getSheetFromName( 
   name : string
) : Sheet;

Parameters

name
The sheet name.

Return Value

The sheet with the specified name.
Example
This example gets the sheet and sets the cell forecolor.
var sheet1 = spread.getSheetFromName("Sheet2");
sheet1.getCell(0,0).value("A1").foreColor("red");
See Also

Reference

Spread type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.