Spread.Sheets
TableStyle コンストラクタ
テーブルの背景色。
テーブルの前景色。
フォント。
テーブルの左罫線。
テーブルの上罫線。
テーブルの右罫線。
テーブルの下罫線。
テーブルの横罫線。
テーブルの縦罫線。
テーブルのテキスト装飾。
テーブルのスタイル情報を表します。
シンタックス
Javascript (Usage) 
var instance = new GC.Spread.Sheets.Tables.TableStyle(backColor,
                                                     foreColor,
                                                     font,
                                                     borderLeft,
                                                     borderTop,
                                                     borderRight,
                                                     borderBottom,
                                                     borderHorizontal,
                                                     borderVertical,
                                                     textDecoration);
Javascript (Specification) 
function TableStyle( 
   backColor : string,
   foreColor : string,
   font : string,
   borderLeft : LineBorder,
   borderTop : LineBorder,
   borderRight : LineBorder,
   borderBottom : LineBorder,
   borderHorizontal : LineBorder,
   borderVertical : LineBorder,
   textDecoration : TextDecorationType
) : TableStyle;

パラメータ

backColor
テーブルの背景色。
foreColor
テーブルの前景色。
font
フォント。
borderLeft
テーブルの左罫線。
borderTop
テーブルの上罫線。
borderRight
テーブルの右罫線。
borderBottom
テーブルの下罫線。
borderHorizontal
テーブルの横罫線。
borderVertical
テーブルの縦罫線。
textDecoration
テーブルのテキスト装飾。
使用例
次のサンプルコードは、テーブルを作成します。
var tableStyle = new GC.Spread.Sheets.Tables.TableTheme();
var thinBorder = new GC.Spread.Sheets.LineBorder("black", GC.Spread.Sheets.LineStyle.dotted);
tableStyle.wholeTableStyle(new GC.Spread.Sheets.Tables.TableStyle("aliceblue", "green", "bold 10pt arial", thinBorder, thinBorder, thinBorder, thinBorder, thinBorder, thinBorder));

var tableStyleInfo = new GC.Spread.Sheets.Tables.TableStyle(
    "black",
    "white",
    "bold 11pt arial",
    new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.thin),
    new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.thick),
    new GC.Spread.Sheets.LineBorder("yellow", GC.Spread.Sheets.LineStyle.thin),
    new GC.Spread.Sheets.LineBorder("blue", GC.Spread.Sheets.LineStyle.thick));
tableStyle.headerRowStyle(tableStyleInfo);

var table = activeSheet.tables.add("table1", 1, 1, 5, 5, tableStyle);

関連トピック

参照

TableStyle タイプ

 

 


© 2016-2018, GrapeCity inc. All rights reserved.