SpreadJS Documentation
getGridlineOptions Method
Gets the grid line's options.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Object
value = instance.getGridlineOptions();
function getGridlineOptions() : Object;

Return Value

The grid line options.

The following values can be returned:

options.color

string type

Specifies the color of the grid line.

options.showVerticalGridline

boolean type

Specifies whether to display the vertical grid line.

options.showHorizontalGridline

boolean type

Specifies whether to display the horizontal grid line.

Example
This example gets the color.
activeSheet.setGridlineOptions({color:"#FF2235", showVerticalGridline: true, showHorizontalGridline: false});
alert(activeSheet.getGridlineOptions().color);
Remarks
By default, the sheet displays both the vertical and horizontal grid lines. The default grid line color is #d0d7e5.
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.