API Reference
Cmdlet
Set-OfficeExcelRowGroup
Configures collapsible Excel outline grouping for worksheet rows.
Remarks
Configures collapsible Excel outline grouping for worksheet rows.
Examples
Group detail rows and collapse them.
PS>
ExcelSheet 'Data' { Set-OfficeExcelRowGroup -StartRow 2 -EndRow 20 -Collapsed }
Applies Excel row outline metadata using OfficeIMO.
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-OfficeExcelRowGroup [-Clear] [-Collapsed] [-EndRow <Nullable`1>] [-Hidden] [-KeepHidden] [-OutlineLevel <Int32>] -StartRow <Int32> [-SummaryBelow <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Clear SwitchParameter
- Clear row grouping metadata from the target range.
- Collapsed SwitchParameter
- Hide the grouped rows and mark the following summary row as collapsed.
- EndRow Nullable`1
- Last 1-based row in the group. Defaults to StartRow.
- Hidden SwitchParameter
- Hide the grouped rows without marking the group collapsed.
- KeepHidden SwitchParameter
- Keep hidden rows hidden when clearing row grouping metadata.
- OutlineLevel Int32
- Excel outline level from 1 through 7.
- StartRow Int32
- First 1-based row in the group.
- SummaryBelow Nullable`1
- Set whether row summary controls appear below grouped rows.
Outputs
System.Object