Back to Devexpress

Workbook.SheetRenaming Event

officefileapi-devexpress-dot-spreadsheet-dot-workbook-6729f451.md

latest2.7 KB
Original Source

Workbook.SheetRenaming Event

Occurs when a worksheet is about to be renamed.

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this event in production code.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public event SheetRenamingEventHandler SheetRenaming
vb
Public Event SheetRenaming As SheetRenamingEventHandler

Event Data

The SheetRenaming event's data class is SheetRenamingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewNameGets or sets the new name of the renamed worksheet.
OldNameGets the name of the worksheet being renamed.

Remarks

The SheetRenaming event allows you to perform an action before a worksheet is renamed using the Worksheet.Name property. You can cancel renaming a worksheet by setting the event parameter’s Cancel property to true.

After a worksheet name has been changed, the Workbook.SheetRenamed event is raised.

Note

This event does not occur by default. The event fires only if the WorkbookEventOptions.RaiseOnModificationsViaAPI property is true.

Implements

SheetRenaming

See Also

Workbook Class

Workbook Members

DevExpress.Spreadsheet Namespace