Cmdlet
Add-OfficeOpenDocumentParagraph
Adds a paragraph to an OpenDocument text document.
Syntax
Add-OfficeOpenDocumentParagraph
[-Alignment <OfficeAlignment>]
[-Bold]
[-Color <OfficeColor>]
[-Document <OdtDocument>]
[-Font <String>]
[-Italic]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-Text] <String>
[-Underline <OdfTextDecorationStyle>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Add body text in the OpenDocument DSL.
New-OfficeOpenDocument -Kind Text -Path .\Report.odt -Content { Add-OfficeOpenDocumentParagraph -Text 'Generated by PSWriteOffice' }Parameters
- -Alignment OfficeAlignment
- Paragraph horizontal alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -Bold SwitchParameter
- Apply bold text; explicit false clears it.
- -Color OfficeColor
- Opaque RGB text color, including CSS names and theme roles.
- -Document OdtDocument
- OpenDocument text document. Omit inside New-OfficeOpenDocument -Content.
- -Font String
- Font family.
- -Italic SwitchParameter
- Apply italic text; explicit false clears it.
- -PassThru SwitchParameter
- Emit the created paragraph.
- -Size OfficeLength
- Font size; a number means points.
- -Strikethrough SwitchParameter
- Apply strikethrough; explicit false clears it.
- -Text String
- Paragraph text.
- -Underline OdfTextDecorationStyle
- Native ODF underline line style.
- Possible values:
Solid,Dotted,Dash,LongDash,DotDash,DotDotDash,Wave
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.