Cmdlet
Add-OfficeRtfParagraph
Adds a paragraph to an RTF document.
Syntax
Add-OfficeRtfParagraph
[-Alignment <OfficeAlignment>]
[-Bold]
[-Color <OfficeColor>]
[-Font <String>]
[-Italic]
[-Link <Uri>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-Text] <String>
[-Underline <RtfUnderlineStyle>]
[<CommonParameters>]#Parameter set:
ContextAdd-OfficeRtfParagraph
[-Alignment <OfficeAlignment>]
[-Bold]
[-Color <OfficeColor>]
[-Document <RtfDocument>]
[-Font <String>]
[-Italic]
[-Link <Uri>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-Text] <String>
[-Underline <RtfUnderlineStyle>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Use the native OfficeRtfParagraph command.
$rtf = New-OfficeRtf
Add-OfficeRtfParagraph -Document $rtf -Text 'Maintenance completed.'
Save-OfficeRtf -Document $rtf -Path .\Notes\Maintenance.rtfParameters
- -Alignment OfficeAlignment
- Alignment for this operation.
- Possible values:
Left,Center,Right,Justify,Start,End - -Bold SwitchParameter
- Bold for this operation.
- -Color OfficeColor
- Opaque RGB text color, including CSS names and theme roles.
- -Font String
- Font family registered in the document font table.
- -Italic SwitchParameter
- Italic for this operation.
- -Link Uri
- Hyperlink target written as a native RTF field.
- -PassThru SwitchParameter
- PassThru for this operation.
- -Size OfficeLength
- Font size; a number means points.
- -Strikethrough SwitchParameter
- Apply strikethrough; explicit false clears it.
- -Text String
- Text for this operation.
- -Underline RtfUnderlineStyle
- Native RTF underline variant.
- Possible values:
Single,Words,Double,Dotted,Dash,DashDot,DashDotDot,Thick,ThickDotted,ThickDash,ThickDashDot,ThickDashDotDot,Wave,HeavyWave,DoubleWave,LongDash,ThickLongDash - -Document RtfDocument
- Document for this operation.
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.