.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Workbook.ShapeRemoved Event

Occurs after a drawing object has been removed from a worksheet.

You need an active 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.v20.2.dll

Declaration

public event ShapeChangedEventHandler ShapeRemoved
Public Event ShapeRemoved As ShapeChangedEventHandler

Event Data

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

Property Description
ShapeId Gets the ID value of the drawing object that has been inserted or removed.
ShapeName Gets the name of the drawing object that has been inserted or removed.
ShapeType Gets the type of the drawing object that has been inserted or removed.

Remarks

Handle the ShapeRemoved event to perform specific actions each time a drawing object is removed from a worksheet. To obtain the type of the removed drawing object, use the ShapeType parameter.

To prevent a drawing object from being removed, use the Workbook.ShapeRemoving event that is raised before a drawing object is deleted.

NOTE

By default, the ShapeRemoved event does not occur when removing a drawing object in code. However, this event will also be triggered by changes made via an API if you set the WorkbookEventOptions.RaiseOnModificationsViaAPI property (accessible via the Workbook.Options.Events.RaiseOnModificationsViaAPI notation) to true.

Implements

See Also