Cmdlet
Add-OfficeWordFooter
Adds content to a section footer.
Syntax
Description
Creates or reuses the requested footer part (default/first/even) and runs the DSL script block inside it.
Examples
Append page numbers to the default footer.
Add-OfficeWordSection { Add-OfficeWordFooter { Add-OfficeWordPageNumber -IncludeTotalPages } }Inserts a footer displaying “Page X of Y”.
Parameters
- -Content ScriptBlock
- DSL scriptblock executed within the footer context.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Type WordHeaderFooterType
- The footer kind (Default/First/Even).
- Possible values:
Default,First,Even
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.