GcSpread.Sheets Namespace > Sheet type : getSpans Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: Array value = instance.getSpans(range, sheetArea);
activeSheet.addSpan(0,0,3,3,GcSpread.Sheets.SheetArea.viewport); //button click event var spans= activeSheet.getSpans(); for(var i = 0; i < spans.length; i++){ alert(spans[i].row); alert(spans[i].rowCount); alert(spans[i].col); alert(spans[i].colCount); }
sheet.addSpan(0,0,3,3,GcSpread.Sheets.SheetArea.viewport); var spans =sheet.getSpans(); for(var i=0;i<spans.length;i++) { alert(spans[i].row.toString() + spans[i].col.toString()); }