API Reference
Cmdlet
Add-OfficeOpenDocumentParagraph
Adds a paragraph to an OpenDocument text document.
Remarks
Adds a paragraph to an OpenDocument text document.
Examples
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 SetsParameters
- Document OdtDocument
- OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
- PassThru SwitchParameter
- Emit the created paragraph.
- Text String
- Paragraph text.
Outputs
OfficeIMO.OpenDocument.OdtParagraph