Occurs when a worksheet is about to be removed from a workbook.
public event SheetRemovingEventHandler SheetRemoving
Public Event SheetRemoving As SheetRemovingEventHandler
The SheetRemoving event's data class is SheetRemovingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
The SheetRemoving event allows you to perform any actions before an end-user removes a worksheet from a workbook using the control's UI. You can cancel removing a worksheet by setting the event parameter's Cancel property to true.
After a worksheet has been removed from a workbook, the SpreadsheetControl.SheetRemoved event is raised.