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 : number ) : FloatingObject;
Parameters
- floatingObjectOrName
- The floating object that will be added to the sheet, or the name of the picture that will be added to the sheet.
- src
- The image source of the picture.
- x
- The x location of the picture.
- y
- The y location of the picture.
- width
- The width of the picture.
- height
- The height of the picture.