var instance = new GC.Spread.Sheets.FloatingObjects.FloatingObjectCollection(sheet, typeName); var value; // Type: FloatingObject value = instance.add(floatingObjectOrName, src, x, y, width, height);
function add( floatingObjectOrName : undefined, src : string, x : number, y : number, width : number, height : nubmer ) : FloatingObject;
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1", 10, 10, 60, 64); var btn = document.createElement('button'); btn.style.width = "60px"; btn.style.height = "30px"; btn.innerText = "button"; customFloatingObject.content(btn); activeSheet.floatingObjects.add(customFloatingObject);
<input type="button" id="button1" value="button1"/> activeSheet.pictures.add("f2","tsoutline.png",100,60,200,100); $("#button1").click(function () { activeSheet.resumePaint(); activeSheet.pictures.remove("f2"); activeSheet.repaint(); });