wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-6c5fd761.md
Occurs after a drawing object has been removed from a worksheet.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public event ShapeChangedEventHandler ShapeRemoved
Public Event ShapeRemoved As ShapeChangedEventHandler
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. |
Handle the ShapeRemoved event to perform specific actions each time an end-user removes a drawing object from a worksheet in the SpreadsheetControl‘s UI. To obtain the type of the removed drawing object, use the ShapeType parameter.
To prevent a drawing object from being removed, use the SpreadsheetControl.ShapeRemoving event that is raised before a drawing object is deleted.
See Also