Cmdlet
Rename-OfficePowerPointSection
Renames the first section matching the supplied name.
Syntax
Rename-OfficePowerPointSection
[-CaseSensitive]
[-Document <PowerPointDocument>]
[-Name] <String>
[-NewName] <String>
[-PassThru]
[<CommonParameters>]#Parameter set:
DocumentExamples
Rename a section in a live deck.
Rename-OfficePowerPointSection -Document $deck -Name Results -NewName 'Deep dive'Return the renamed section.
$section = Rename-OfficePowerPointSection -Document $deck -Name Appendix -NewName Reference -PassThruParameters
- -CaseSensitive SwitchParameter
- Gets or sets whether name matching is case-sensitive.
- -Document PowerPointDocument
- Gets or sets the live document; omission uses its enclosing content block.
- -Name String
- Gets or sets the existing section name.
- -NewName String
- Gets or sets the new section name.
- -PassThru SwitchParameter
- Gets or sets whether the changed section is returned.
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.