Cmdlet
Set-OfficeExcelGridlines
Shows or hides worksheet gridlines.
Syntax
Examples
Hide gridlines.
ExcelSheet 'Data' { Set-OfficeExcelGridlines -Hide }Turns off gridlines for the sheet.
Parameters
- -Hide SwitchParameter
- Hide gridlines.
- -PassThru SwitchParameter
- Emit the worksheet after applying gridline settings.
- -Show SwitchParameter
- Show gridlines.
- -Document ExcelDocument
- Workbook to operate on outside the DSL context.
- -Sheet String
- Worksheet name when using Document.
- -SheetIndex Int32
- Worksheet index (0-based) when using Document.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.