GC.Spread.Sheets Namespace > Worksheet type : getSpans Method |
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: Array value = instance.getSpans(range, sheetArea);
activeSheet.addSpan(0,0,3,3,GC.Spread.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,GC.Spread.Sheets.SheetArea.viewport); var spans =sheet.getSpans(); for(var i=0;i<spans.length;i++) { alert(spans[i].row.toString() + spans[i].col.toString()); }