Spread.Sheets Documentation
renameSheet Field
Represents the command used to rename a worksheet.
* The command has a boolean field canUndo that indicates whether the command supports undo and redo operations, and an execute method that performs an execute or undo operation.
* The arguments of the execute method are as follows.
context {GC.Spread.Sheets.Workbook} The context of the operation.
options {Object} The options of the operation.
* options.sheetName {string} The sheet name.
* options.name {string} The sheet's new name.
isUndo {boolean} true if this is an undo operation; otherwise, false.
Syntax
var value; // Type: renameSheet
value = GC.Spread.Sheets.Commands.renameSheet;
var renameSheet : renameSheet;
Example
This example renames a sheet.
spread.commandManager().execute({cmd: "renameSheet", sheetName: "Sheet1", name: "SheetName"});
See Also

Reference

Commands type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.