API Reference
Cmdlet
Set-OfficeWordTextStyle
Updates styling on Word text.
Remarks
Updates styling on Word text.
Examples
Style text inside a Word paragraph.
PS>
WordParagraph -Text 'Warning' -PassThru | Set-OfficeWordTextStyle -Bold $true -Color '#C00000'
Applies bold red styling to matching text.
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-OfficeWordTextStyle [-Bold <Nullable`1>] [-CapsStyle <Nullable`1>] [-Color <String>] [-DoubleStrike <Nullable`1>] [-Emboss <Nullable`1>] [-FontFamily <String>] [-FontSize <Nullable`1>] [-Highlight <String>] [-InputObject <WordParagraph>] [-Italic <Nullable`1>] [-Outline <Nullable`1>] [-PassThru] [-Shadow <Nullable`1>] [-Spacing <Nullable`1>] [-Strike <Nullable`1>] [-Style <Nullable`1>] [-StyleId <String>] [-Text <String>] [-Underline <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Bold Nullable`1
- Set or clear bold formatting.
- CapsStyle Nullable`1
- Capitalization style.
- Color String
- Text color as #RRGGBB.
- DoubleStrike Nullable`1
- Set or clear double strikethrough.
- Emboss Nullable`1
- Set or clear emboss effect.
- FontFamily String
- Font family name.
- FontSize Nullable`1
- Font size in points.
- Highlight String
- Highlight color.
- InputObject WordParagraph
- Word text item to update.
- Italic Nullable`1
- Set or clear italic formatting.
- Outline Nullable`1
- Set or clear outline effect.
- PassThru SwitchParameter
- Emit the updated text item.
- Shadow Nullable`1
- Set or clear shadow effect.
- Spacing Nullable`1
- Character spacing in twentieths of a point.
- Strike Nullable`1
- Set or clear strikethrough.
- Style Nullable`1
- Character style to apply.
- StyleId String
- Character style id to apply.
- Text String
- Replace the text.
- Underline String
- Underline style to apply.
Outputs
OfficeIMO.Word.WordParagraph