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.
- Code
- Result
// How to find out whether sheet gridlines should be printed or not.
// Get a boolean value representing whether to print gridlines or not.
let worksheet = Api.GetActiveSheet();
worksheet.SetPrintGridlines(true);
worksheet.GetRange("A1").SetValue("Gridlines of cells will be printed on this page: " + worksheet.GetPrintGridlines());