API Reference
Command
Add-OfficeWordParagraph
Adds a paragraph to the current section/header/footer context.
Remarks
Adds a paragraph to the current section/header/footer context.
Examples
Write a formatted sentence.
PS>Add-OfficeWordParagraph { Add-OfficeWordText -Text 'Hello '; Add-OfficeWordText -Text 'World' -Bold }
Outputs “Hello World” with the second word bolded.
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-OfficeWordParagraph [-Alignment <Nullable`1>] [-PassThru] [-Style <Nullable`1>] [-Text <String>] [<CommonParameters>]#Parameter set:
TextParameters
- Alignment Nullable`1
- Paragraph justification.
- PassThru SwitchParameter
- Emit the WordParagraph for further use.
- Style Nullable`1
- Paragraph style.
- Text String
- Optional initial paragraph text.
Outputs
System.Object
Add-OfficeWordParagraph [-Alignment <Nullable`1>] [-Content <ScriptBlock>] [-PassThru] [-Style <Nullable`1>] [-Text <String>] [<CommonParameters>]#Parameter set:
ContentParameters
- Alignment Nullable`1
- Paragraph justification.
- Content ScriptBlock
- Nested DSL content (runs, lists, images).
- PassThru SwitchParameter
- Emit the WordParagraph for further use.
- Style Nullable`1
- Paragraph style.
- Text String
- Optional initial paragraph text.
Outputs
System.Object