Spread.Sheets Documentation
FloatingObject Method
GC.Spread.Sheets Namespace > FloatingObjects type : FloatingObject Method
The name of the floating object.
The x location of the floating object.
The y location of the floating object.
The width of the floating object.
The height of the floating object.
Represents a floating object.
Syntax
var value; // Type: any
value = GC.Spread.Sheets.FloatingObjects.FloatingObject(name, x, y, width, height);
function FloatingObject( 
   name : string,
   x : number,
   y : number,
   width : number,
   height : number
) : any;

Parameters

name
The name of the floating object.
x
The x location of the floating object.
y
The y location of the floating object.
width
The width of the floating object.
height
The height of the floating object.
Example
//This example creates a floating object.
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);
Remarks
This is a base class that is intended for internal use.
See Also

Reference

FloatingObjects type