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
Section titled “Constructors”constructor
Section titled “constructor”+ new RenameSheetUndoEntry(sheetId: number, oldName: string, newName: string, version?: undefined | number, mergedPlaceholderSheetId?: undefined | number): RenameSheetUndoEntry
Defined in hyperformula/src/UndoRedo.ts:305
Parameters:
| Name | Type |
|---|---|
sheetId |
number |
oldName |
string |
newName |
string |
version? |
undefined | number |
mergedPlaceholderSheetId? |
undefined | number |
Returns: RenameSheetUndoEntry
Properties
Section titled “Properties”mergedPlaceholderSheetId
Section titled “mergedPlaceholderSheetId”OptionalReadonly
• mergedPlaceholderSheetId? : undefined | number
Defined in hyperformula/src/UndoRedo.ts:311
newName
Section titled “newName”Readonly
• newName: string
Defined in hyperformula/src/UndoRedo.ts:309
oldName
Section titled “oldName”Readonly
• oldName: string
Defined in hyperformula/src/UndoRedo.ts:308
sheetId
Section titled “sheetId”Readonly
• sheetId: number
Defined in hyperformula/src/UndoRedo.ts:307
version
Section titled “version”OptionalReadonly
• version? : undefined | number
Defined in hyperformula/src/UndoRedo.ts:310
Methods
Section titled “Methods”doRedo
Section titled “doRedo”▸ doRedo(undoRedo: UndoRedo): void
Defined in hyperformula/src/UndoRedo.ts:320
Parameters:
| Name | Type |
|---|---|
undoRedo |
UndoRedo |
Returns: void
doUndo
Section titled “doUndo”▸ doUndo(undoRedo: UndoRedo): void
Defined in hyperformula/src/UndoRedo.ts:316
Parameters:
| Name | Type |
|---|---|
undoRedo |
UndoRedo |
Returns: void
getReferencedOldDataVersions
Section titled “getReferencedOldDataVersions”▸ getReferencedOldDataVersions(): number[]
Defined in hyperformula/src/UndoRedo.ts:324
Returns: number[]