API Reference
Command
Set-OfficeExcelGridlines
Shows or hides worksheet gridlines.
Remarks
Shows or hides worksheet gridlines.
Examples
Hide gridlines.
PS>ExcelSheet 'Data' { Set-OfficeExcelGridlines -Hide }
Turns off gridlines for the sheet.
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.
Syntax
Set-OfficeExcelGridlines [-Hide] [-PassThru] [-Show] [<CommonParameters>]#Parameter set:
ContextParameters
- Hide SwitchParameter
- Hide gridlines.
- PassThru SwitchParameter
- Emit the worksheet after applying gridline settings.
- Show SwitchParameter
- Show gridlines.
Outputs
System.Object
Set-OfficeExcelGridlines -Document <ExcelDocument> [-Hide] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] [-Show] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- Hide SwitchParameter
- Hide gridlines.
- PassThru SwitchParameter
- Emit the worksheet after applying gridline settings.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Nullable`1
- Worksheet index (0-based) when using Document.
- Show SwitchParameter
- Show gridlines.
Outputs
System.Object