Back to Devexpress

SpreadsheetControl.ShapeInserted Event

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-05a1241c.md

latest2.2 KB
Original Source

SpreadsheetControl.ShapeInserted Event

Occurs after a drawing object has been inserted into a worksheet.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public event ShapeChangedEventHandler ShapeInserted
vb
Public Event ShapeInserted As ShapeChangedEventHandler

Event Data

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

PropertyDescription
ShapeIdGets the ID value of the drawing object that has been inserted or removed.
ShapeNameGets the name of the drawing object that has been inserted or removed.
ShapeTypeGets the type of the drawing object that has been inserted or removed.

Remarks

Handle the ShapeInserted event to perform specific actions each time an end-user inserts a drawing object into a worksheet via the SpreadsheetControl‘s UI. To obtain the type of the inserted drawing object, use the ShapeType parameter.

After a drawing object has been deleted from a worksheet, the SpreadsheetControl.ShapeRemoved event is raised.

See Also

ShapeRemoved

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace