Skip to main content
A newer version of this page is available. .

SpreadsheetControl.ShapeRemoving Event

Occurs before a drawing object is removed from a worksheet.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v19.1.dll

Declaration

public event ShapeChangingEventHandler ShapeRemoving

Event Data

The ShapeRemoving event's data class is ShapeChangingEventArgs. 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.
ShapeId Gets the ID value of the drawing object being removed.
ShapeType Gets the type of the drawing object being removed.

Remarks

The ShapeRemoving event allows you to perform any actions before an end-user removes a drawing object in the SpreadsheetControl‘s UI. To obtain the type of the drawing object for which the event has been raised, use the event parameter’s ShapeType property. You can prevent a drawing object from being removed by setting the Cancel property to true.

After a drawing object has been removed, the SpreadsheetControl.ShapeRemoved event is raised.

See Also