OfficeIMO

API Reference

Command

Add-OfficeWordParagraph

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

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: Text

Parameters

Alignment Nullable`1 optionalposition: namedpipeline: False
Paragraph justification.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the WordParagraph for further use.
Style Nullable`1 optionalposition: namedpipeline: False
Paragraph style.
Text String optionalposition: 0pipeline: False
Optional initial paragraph text.

Outputs

System.Object

Add-OfficeWordParagraph [-Alignment <Nullable`1>] [-Content <ScriptBlock>] [-PassThru] [-Style <Nullable`1>] [-Text <String>] [<CommonParameters>]
#
Parameter set: Content

Parameters

Alignment Nullable`1 optionalposition: namedpipeline: False
Paragraph justification.
Content ScriptBlock optionalposition: 0pipeline: False
Nested DSL content (runs, lists, images).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the WordParagraph for further use.
Style Nullable`1 optionalposition: namedpipeline: False
Paragraph style.
Text String optionalposition: 0pipeline: False
Optional initial paragraph text.

Outputs

System.Object