SpreadJS Documentation
startColumn Method
The starting column index of the floating object position.
Gets or sets the starting column index of the floating object position.
Syntax
var instance = new GcSpread.Sheets.FloatingObject(name, x, y, width, height);
var returnValue; // Type: Object
returnValue = instance.startColumn(value);
function startColumn( 
   value : number
) : Object;

Parameters

value
The starting column index of the floating object position.

Return Value

The starting column index of the floating object position.
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.