GcSpread.Sheets Namespace > Sheet type : getStyleName Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: string value = instance.getStyleName(row, column, sheetArea);
var namedStyle = new GcSpread.Sheets.Style(); namedStyle.name = "style1"; namedStyle.backColor = "green"; activeSheet.addNamedStyle(namedStyle); activeSheet.setStyleName(1, 1, "style1"); // cell(1,1)'s backColor is green. activeSheet.setStyleName(2, 1, "style1"); alert(activeSheet.getStyleName(1,1,GcSpread.Sheets.SheetArea.viewport));