API Reference

Cmdlet

Add-OfficeOpenDocumentParagraph

Namespace PSWriteOffice
Inputs
OfficeIMO.OpenDocument.OdtDocument
Outputs
OfficeIMO.OpenDocument.OdtParagraph

Adds a paragraph to an OpenDocument text document.

Remarks

Adds a paragraph to an OpenDocument text document.

Examples

Authored help example

Add body text in the OpenDocument DSL.

PS>


New-OfficeOpenDocument -Kind Text -Path .\Report.odt -Content { Add-OfficeOpenDocumentParagraph -Text 'Generated by PSWriteOffice' }
        

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-OfficeOpenDocumentParagraph [-Document <OdtDocument>] [-PassThru] -Text <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document OdtDocument optionalposition: namedpipeline: True (ByValue)
OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created paragraph.
Text String requiredposition: 0pipeline: False
Paragraph text.

Outputs

OfficeIMO.OpenDocument.OdtParagraph