var instance = new GC.Spread.Sheets.Tables.TableTheme(); var returnValue; // Type: any returnValue = instance.name(value);
function name( value : string ) : any;
パラメータ
- value
- スタイルの名前。
戻り値の型
値が設定されていない場合は、スタイルの名前を返します。値が設定されている場合は、テーブルテーマを返します。
var instance = new GC.Spread.Sheets.Tables.TableTheme(); var returnValue; // Type: any returnValue = instance.name(value);
function name( value : string ) : any;
//Add data for (var col = 1; col < 6; col++) { for (var row = 2; row < 11; row++) { activeSheet.setValue(row, col, row + col); } } var tableStyle = new GC.Spread.Sheets.TableStyle(); var thinBorder = new GC.Spread.Sheets.LineBorder("black", GC.Spread.Sheets.LineStyle.dotted); tableStyle.wholeTableStyle(new GC.Spread.Sheets.TableStyleInfo("aliceblue", "green", "bold 10pt arial", thinBorder, thinBorder, thinBorder, thinBorder, thinBorder, thinBorder)); var tStyleInfo = new GC.Spread.Sheets.TableStyleInfo(); tStyleInfo.backColor = "green"; tStyleInfo.foreColor = "red"; tStyleInfo.borderBottom = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin); tStyleInfo.borderLeft = new GC.Spread.Sheets.LineBorder("yellow", GC.Spread.Sheets.LineStyle.medium); tStyleInfo.borderTop = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin); tStyleInfo.borderRight = new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin); tStyleInfo.font = "bold 11pt arial"; tableStyle.name("tstyle"); tableStyle.firstColumnStripSize(2); tableStyle.firstColumnStripStyle(tStyleInfo); var sTable = activeSheet.addTable("Custom", 1, 1, 10, 5, tableStyle); sTable.bandColumns(true);