# RenameSheetUndoEntry Class
Undo entry for renaming a sheet.
When renaming a sheet to a name that was previously referenced (but didn't exist), a placeholder sheet gets merged into the renamed sheet. In this case:
versioncontains the transformation version for restoring formulas during undomergedPlaceholderSheetIdcontains the ID of the placeholder sheet that was merged
When renaming to a name not previously referenced, both optional params are undefined.
# Constructors
# constructor
+ new RenameSheetUndoEntry(sheetId: number, oldName: string, newName: string, version?: Maybe‹number›, mergedPlaceholderSheetId?: Maybe‹number›): RenameSheetUndoEntry
Defined in src/UndoRedo.ts:271 (opens new window)
Parameters:
| Name | Type |
|---|---|
sheetId | number |
oldName | string |
newName | string |
version? | Maybe‹number› |
mergedPlaceholderSheetId? | Maybe‹number› |
Returns: RenameSheetUndoEntry
# Properties
# mergedPlaceholderSheetId OptionalReadonly
• mergedPlaceholderSheetId? : Maybe‹number›
Defined in src/UndoRedo.ts:277 (opens new window)
# newName Readonly
• newName: string
Defined in src/UndoRedo.ts:275 (opens new window)
# oldName Readonly
• oldName: string
Defined in src/UndoRedo.ts:274 (opens new window)
# sheetId Readonly
• sheetId: number
Defined in src/UndoRedo.ts:273 (opens new window)
# version OptionalReadonly
• version? : Maybe‹number›
Defined in src/UndoRedo.ts:276 (opens new window)
# Methods
# doRedo
▸ doRedo(undoRedo: UndoRedo): void
Defined in src/UndoRedo.ts:286 (opens new window)
Parameters:
| Name | Type |
|---|---|
undoRedo | UndoRedo |
Returns: void
# doUndo
▸ doUndo(undoRedo: UndoRedo): void
Defined in src/UndoRedo.ts:282 (opens new window)
Parameters:
| Name | Type |
|---|---|
undoRedo | UndoRedo |
Returns: void