SpreadJS Documentation
wholeTableStyle Method
The default style of the data area.
Syntax
var instance = new GcSpread.Sheets.TableStyle();
var value; // Type: any
value = instance.wholeTableStyle();
function wholeTableStyle() : any;

Return Value

Returns the default style of the data area. If the style is not set, it returns the table style.
Example
This example creates a table.
var tableStyle = new GcSpread.Sheets.TableStyle();
var thinBorder = new GcSpread.Sheets.LineBorder("black", GcSpread.Sheets.LineStyle.dotted);
tableStyle.wholeTableStyle(new GcSpread.Sheets.TableStyleInfo("aliceblue", "green", "bold 10pt arial", thinBorder, thinBorder, thinBorder, thinBorder, thinBorder, thinBorder));

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

var table = activeSheet.addTable("table1", 1, 1, 5, 5, tableStyle);
See Also

Reference

TableStyle type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.