Spread.Sheets Documentation
FloatingObject Constructor
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 instance = new GC.Spread.Sheets.FloatingObjects.FloatingObject(name, x, y, width, height);
function FloatingObject( 
   name : string,
   x : number,
   y : number,
   width : number,
   height : number
) : FloatingObject;

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

FloatingObject type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.