API Reference
Cmdlet
Set-OfficeWordParagraphStyle
Updates paragraph style, spacing, indentation, and pagination hints.
Remarks
Updates paragraph style, spacing, indentation, and pagination hints.
Examples
Style a paragraph in a Word DSL.
PS>
$p = Add-OfficeWordParagraph -Text 'Executive Summary' -PassThru; $p | Set-OfficeWordParagraphStyle -Style Heading1 -KeepWithNext $true
Applies a heading style and keeps it with the next paragraph.
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
Set-OfficeWordParagraphStyle [-Alignment <String>] [-AvoidWidowAndOrphan <Nullable`1>] [-BiDi <Nullable`1>] [-CharacterAlignment <String>] [-IndentationAfterPoints <Nullable`1>] [-IndentationBeforePoints <Nullable`1>] [-IndentationFirstLinePoints <Nullable`1>] [-IndentationHangingPoints <Nullable`1>] [-KeepLinesTogether <Nullable`1>] [-KeepWithNext <Nullable`1>] [-LineSpacingPoints <Nullable`1>] [-LineSpacingRule <String>] [-PageBreakBefore <Nullable`1>] [-Paragraph <WordParagraph>] [-PassThru] [-SpacingAfterPoints <Nullable`1>] [-SpacingBeforePoints <Nullable`1>] [-Style <Nullable`1>] [-StyleId <String>] [-TextDirection <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Alignment String
- Paragraph alignment.
- AvoidWidowAndOrphan Nullable`1
- Enable widow and orphan control.
- BiDi Nullable`1
- Set or clear right-to-left paragraph layout.
- CharacterAlignment String
- Vertical character alignment on each line.
- IndentationAfterPoints Nullable`1
- Indentation after the paragraph in points.
- IndentationBeforePoints Nullable`1
- Indentation before the paragraph in points.
- IndentationFirstLinePoints Nullable`1
- First-line indentation in points.
- IndentationHangingPoints Nullable`1
- Hanging indentation in points.
- KeepLinesTogether Nullable`1
- Keep all paragraph lines together.
- KeepWithNext Nullable`1
- Keep this paragraph with the next paragraph.
- LineSpacingPoints Nullable`1
- Line spacing in points.
- LineSpacingRule String
- Line spacing calculation rule.
- PageBreakBefore Nullable`1
- Start the paragraph on a new page.
- Paragraph WordParagraph
- Paragraph to update.
- PassThru SwitchParameter
- Emit the updated paragraph.
- SpacingAfterPoints Nullable`1
- Line spacing after the paragraph in points.
- SpacingBeforePoints Nullable`1
- Line spacing before the paragraph in points.
- Style Nullable`1
- Paragraph style to apply.
- StyleId String
- Paragraph style id to apply.
- TextDirection String
- Paragraph text direction.
Outputs
OfficeIMO.Word.WordParagraph