var instance = new GC.Spread.Sheets.Workbook(host); var value; // Type: Array value = instance.getNamedStyles();
function getNamedStyles() : Array;
戻り値の型
名前付きスタイルを含むGC.Spread.Sheets.Styleの配列。
var instance = new GC.Spread.Sheets.Workbook(host); var value; // Type: Array value = instance.getNamedStyles();
function getNamedStyles() : Array;
var namedStyle1 = new GC.Spread.Sheets.Style(); namedStyle1.name = "style2"; namedStyle1.backColor = "blue"; var namedStyle = new GC.Spread.Sheets.Style(); namedStyle.name = "style1"; namedStyle.backColor = "green"; spread.addNamedStyle(namedStyle); spread.addNamedStyle(namedStyle1); activeSheet.setStyleName(1, 1, "style1"); activeSheet.setStyleName(2, 1, "style1"); activeSheet.setStyleName(3, 0, "style2"); activeSheet.getCell(1,1).value("test"); var sname = spread.getNamedStyles(); for(var i = 0; i < sname.length; i++){ alert(sname[i].name); }