SpreadJS Documentation
setGridlineOptions Method
The grid line options.

The following settings are available:

options.color string type Specifies the color of the gridline.
options.showVerticalGridline boolean type Specifies whether to display the vertical gridline.
options.showHorizontalGridline boolean type Specifies whether to display the horizontal gridline.
Sets the grid line's options.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setGridlineOptions(options);
function setGridlineOptions( 
   options : Object
) : any;

Parameters

options
The grid line options.

The following settings are available:

options.color string type Specifies the color of the gridline.
options.showVerticalGridline boolean type Specifies whether to display the vertical gridline.
options.showHorizontalGridline boolean type Specifies whether to display the horizontal gridline.
Example
This example sets the grid line options.
sheet.setGridlineOptions({color:"#FF2235", showVerticalGridline: true, showHorizontalGridline: false});
sheet.isPaintSuspended(false);
sheet.repaint();
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.