GcSpread.Sheets Namespace > Sheet type : getStyle Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: Style value = instance.getStyle(row, column, sheetArea);
var style = new GcSpread.Sheets.Style(); style.backColor = "red"; style.borderLeft =new GcSpread.Sheets.LineBorder("blue"); style.borderTop = new GcSpread.Sheets.LineBorder("blue"); style.borderRight = new GcSpread.Sheets.LineBorder("blue"); style.borderBottom = new GcSpread.Sheets.LineBorder("blue"); activeSheet.setStyle(1,1,style,GcSpread.Sheets.SheetArea.viewport); var cstyle = activeSheet.getStyle(1,1,GcSpread.Sheets.SheetArea.viewport, true); alert(cstyle.backColor);