GetPrintGridlines
Returns the page PrintGridlines property which specifies whether the current sheet gridlines must be printed or not.
Syntax
expression.GetPrintGridlines();
expression
- A variable that represents a ApiWorksheet class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
This example shows how to get the page PrintGridlines property which specifies whether the sheet gridlines must be printed or not.
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetPrintGridlines(true);
oWorksheet.GetRange("A1").SetValue("Gridlines of cells will be printed on this page: " + oWorksheet.GetPrintGridlines());