Spread.Sheets Documentation
wholeTableStyle Method
The default style of the data area.
Gets or sets the default style of the data area.
Syntax
var instance = new GC.Spread.Sheets.Tables.TableTheme();
var returnValue; // Type: any
returnValue = instance.wholeTableStyle(value);
function wholeTableStyle( 
   value : TableStyle
) : any;

Parameters

value
The default style of the data area.

Return Value

If no value is set, returns the default style of the data area; otherwise, returns the table theme.
Example
This example creates a table.
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);
See Also

Reference

TableTheme type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.