Cmdlet
Set-OfficeWordParagraphStyle
Updates paragraph style, spacing, indentation, and pagination hints.
Syntax
Set-OfficeWordParagraphStyle [-Alignment <WordParagraphAlignment>] [-AvoidWidowAndOrphan <Boolean>] [-BiDi <Boolean>] [-CharacterAlignment <Top|Center|Baseline|Bottom|Auto>] [-IndentationAfterPoints <Double>] [-IndentationBeforePoints <Double>] [-IndentationFirstLinePoints <Double>] [-IndentationHangingPoints <Double>] [-KeepLinesTogether <Boolean>] [-KeepWithNext <Boolean>] [-LineSpacingPoints <Double>] [-LineSpacingRule <Auto|Exact|AtLeast>] [-PageBreakBefore <Boolean>] [[-Paragraph] <WordParagraph>] [-PassThru] [-SpacingAfterPoints <Double>] [-SpacingBeforePoints <Double>] [-Style <WordParagraphStyles>] [-StyleId <String>] [-TextDirection <WordTextDirection>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Style a paragraph in a Word DSL.
$p = Add-OfficeWordParagraph -Text 'Executive Summary' -PassThru; $p | Set-OfficeWordParagraphStyle -Style Heading1 -KeepWithNext $trueApplies a heading style and keeps it with the next paragraph.
Parameters
- -Alignment WordParagraphAlignment
- Paragraph alignment.
- Possible values:
Left,Start,Center,Right,End,Both,MediumKashida,Distribute,NumTab,HighKashida,LowKashida,ThaiDistribute - -AvoidWidowAndOrphan Boolean
- Enable widow and orphan control.
- -BiDi Boolean
- Set or clear right-to-left paragraph layout.
- -CharacterAlignment WordVerticalCharacterAlignment
- Vertical character alignment on each line.
- Possible values:
Top,Center,Baseline,Bottom,Auto - -IndentationAfterPoints Double
- Indentation after the paragraph in points.
- -IndentationBeforePoints Double
- Indentation before the paragraph in points.
- -IndentationFirstLinePoints Double
- First-line indentation in points.
- -IndentationHangingPoints Double
- Hanging indentation in points.
- -KeepLinesTogether Boolean
- Keep all paragraph lines together.
- -KeepWithNext Boolean
- Keep this paragraph with the next paragraph.
- -LineSpacingPoints Double
- Line spacing in points.
- -LineSpacingRule WordLineSpacingRule
- Line spacing calculation rule.
- Possible values:
Auto,Exact,AtLeast - -PageBreakBefore Boolean
- Start the paragraph on a new page.
- -Paragraph WordParagraph
- Paragraph to update.
- -PassThru SwitchParameter
- Emit the updated paragraph.
- -SpacingAfterPoints Double
- Line spacing after the paragraph in points.
- -SpacingBeforePoints Double
- Line spacing before the paragraph in points.
- -Style WordParagraphStyles
- Paragraph style to apply.
- Possible values:
Normal,Heading1,Heading2,Heading3,Heading4,Heading5,Heading6,Heading7,Heading8,Heading9,ListParagraph,Custom - -StyleId String
- Paragraph style id to apply.
- -TextDirection WordTextDirection
- Paragraph text direction.
- Possible values:
LeftToRightTopToBottom,LeftToRightTopToBottom2010,TopToBottomRightToLeft,TopToBottomRightToLeft2010,BottomToTopLeftToRight,BottomToTopLeftToRight2010,LeftToRightTopToBottomRotated,LeftToRightTopToBottomRotated2010,TopToBottomRightToLeftRotated,TopToBottomRightToLeftRotated2010,TopToBottomLeftToRightRotated,TopToBottomLeftToRightRotated2010
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.