wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-2a35b6f1.md
Occurs when a worksheet is about to be renamed.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public event SheetRenamingEventHandler SheetRenaming
Public Event SheetRenaming As SheetRenamingEventHandler
The SheetRenaming event's data class is SheetRenamingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs. |
| NewName | Gets or sets the new name of the renamed worksheet. |
| OldName | Gets the name of the worksheet being renamed. |
The SheetRenaming event allows you to perform any actions before an end-user renames a worksheet. You can cancel renaming a worksheet by setting the event parameter’s Cancel property to true.
After a worksheet name has been changed, the SpreadsheetControl.SheetRenamed event is raised.
See Also