Cmdlet
Add-OfficeWordHeader
Adds content to a section header.
Syntax
Description
Ensures the requested header part (default/first/even) exists and executes the DSL scriptblock within it.
Examples
Create a default header.
Add-OfficeWordSection { Add-OfficeWordHeader { Add-OfficeWordParagraph -Text 'Confidential' -Style Heading3 } }Creates a section header that prints “Confidential”.
Parameters
- -Content ScriptBlock
- DSL scriptblock to execute inside the header.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Type WordHeaderFooterType
- The header type to modify.
- 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.