SpreadJS Documentation
startRowOffset Method
The offset relative to the start row of the floating object.
Gets or sets the offset relative to the start row of the floating object.
Syntax
var instance = new GcSpread.Sheets.FloatingObject(name, x, y, width, height);
var returnValue; // Type: Object
returnValue = instance.startRowOffset(value);
function startRowOffset( 
   value : number
) : Object;

Parameters

value
The offset relative to the start row of the floating object.

Return Value

The offset relative to the start row of the floating object.
Example
This example creates a floating object.
var customFloatingObject = new GcSpread.Sheets.CustomFloatingObject("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.addFloatingObject(customFloatingObject);
//these code could take effect when add into sheet.
customFloatingObject.startRow(2);
customFloatingObject.startColumn(2);
customFloatingObject.startRowOffset(10);
customFloatingObject.startColumnOffset(10);
Remarks
This method only takes effect after the floating object has been added to the sheet.
See Also

Reference

FloatingObject class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.