Cmdlet
Set-OfficeWordParagraph
Updates paragraph style, spacing, indentation, and pagination hints.
Syntax
Set-OfficeWordParagraph
[-Alignment <OfficeAlignment>]
[-AvoidWidowAndOrphan]
[-BiDi]
[-CharacterAlignment <Top| Center| Baseline| Bottom| Auto>]
[-IndentationAfter <OfficeLength>]
[-IndentationBefore <OfficeLength>]
[-IndentationFirstLine <OfficeLength>]
[-IndentationHanging <OfficeLength>]
[-KeepLinesTogether]
[-KeepWithNext]
[-LineSpacing <OfficeLength>]
[-LineSpacingRule <Auto| Exact| AtLeast>]
[-PageBreakBefore]
[[-Paragraph] <WordParagraph>]
[-PassThru]
[-SpacingAfter <OfficeLength>]
[-SpacingBefore <OfficeLength>]
[-Style <WordParagraphStyles>]
[-StyleId <String>]
[-TextDirection <WordTextDirection>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Style a paragraph in a Word DSL.
$p = Add-OfficeWordParagraph -Text 'Executive Summary' -PassThru; $p | Set-OfficeWordParagraph -Style Heading1 -KeepWithNextApplies a heading style and keeps it with the next paragraph.
Parameters
- -Alignment OfficeAlignment
- Paragraph alignment.
- Possible values:
Left,Center,Right,Justify,Start,End - -AvoidWidowAndOrphan SwitchParameter
- Enable widow and orphan control.
- -BiDi SwitchParameter
- Set or clear right-to-left paragraph layout.
- -CharacterAlignment WordVerticalCharacterAlignment
- Vertical character alignment on each line.
- Possible values:
Top,Center,Baseline,Bottom,Auto - -IndentationAfter OfficeLength
- Indentation after the paragraph; a bare number means points.
- -IndentationBefore OfficeLength
- Indentation before the paragraph; a bare number means points.
- -IndentationFirstLine OfficeLength
- First-line indentation; a bare number means points.
- -IndentationHanging OfficeLength
- Hanging indentation; a bare number means points.
- -KeepLinesTogether SwitchParameter
- Keep all paragraph lines together.
- -KeepWithNext SwitchParameter
- Keep this paragraph with the next paragraph.
- -LineSpacing OfficeLength
- Physical line height; bare numbers mean points. Null clears the direct line-spacing override.
- -LineSpacingRule WordLineSpacingRule
- Line spacing calculation rule.
- Possible values:
Auto,Exact,AtLeast - -PageBreakBefore SwitchParameter
- Start the paragraph on a new page.
- -Paragraph WordParagraph
- Paragraph to update.
- -PassThru SwitchParameter
- Emit the updated paragraph.
- -SpacingAfter OfficeLength
- Line spacing after the paragraph; a bare number means points.
- -SpacingBefore OfficeLength
- Line spacing before the paragraph; a bare number means points.
- -Style WordParagraphStyles
- Paragraph style to apply.
- Possible values:
Normal,Heading1,Heading2,Heading3,Heading4,Heading5,Heading6,Heading7,Heading8,Heading9,ListParagraph,Custom,Title,Subtitle - -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.