Spread.Sheets Documentation
get Method
GC.Spread.Sheets.FloatingObjects Namespace > FloatingObjectCollection type : get Method
The name of the floating object.
Gets a floating object from the sheet by the indicate name.
Syntax
var instance = new GC.Spread.Sheets.FloatingObjects.FloatingObjectCollection(sheet, typeName);
var value; // Type: FloatingObject
value = instance.get(name);
function get( 
   name : string
) : FloatingObject;

Parameters

name
The name of the floating object.
Example
The following examples use the get method.
<input type="button" id="button1" value="button1"/>

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);

$("#button1").click(function () {
var floating = activeSheet.floatingObjects.get("f1");
floating.isVisible(false);
    });
<input type="button" id="button1" value="button1"/>

activeSheet.pictures.add("f2","tsoutline.png",100,60,200,100);

$("#button1").click(function () {
var pic = activeSheet.pictures.get("f2");
    });
See Also

Reference

FloatingObjectCollection type