Cmdlet
Add-OfficeOpenDocumentParagraph
Adds a paragraph to an OpenDocument text document.
Syntax
Add-OfficeOpenDocumentParagraph
[-Document <OdtDocument>]
[-PassThru]
[-Text] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Add body text in the OpenDocument DSL.
New-OfficeOpenDocument -Kind Text -Path .\Report.odt -Content { Add-OfficeOpenDocumentParagraph -Text 'Generated by PSWriteOffice' }Parameters
- -Document OdtDocument
- OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
- -PassThru SwitchParameter
- Emit the created paragraph.
- -Text String
- Paragraph text.
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.