//This example uses the ShapeRemoving event. var shape = sheet.shapes.add("myShape", GC.Spread.Sheets.Shapes.AutoShapeType.diamond, 0, 90, 200, 200); activeSheet.bind(GC.Spread.Sheets.Events.ShapeRemoving, function (e, info) { info.cancel = true;// the shape will not remove });