OfficeIMO

API Reference

Command

Add-OfficeWordHeader

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Adds content to a section header.

Remarks

Adds content to a section header.

Examples

Create a default header.


PS>Add-OfficeWordSection { Add-OfficeWordHeader { Add-OfficeWordParagraph -Text 'Confidential' -Style Heading3 } }
        

Creates a section header that prints “Confidential”.

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

Add-OfficeWordHeader [-Content <ScriptBlock>] [-Type <HeaderFooterValues>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Content ScriptBlock optionalposition: 0pipeline: False
DSL scriptblock to execute inside the header.
Type HeaderFooterValues optionalposition: namedpipeline: False
The header type to modify.

Outputs

System.Object