API Reference
Command
Add-OfficeWordText
Adds inline text to the current paragraph.
Remarks
Adds inline text to the current paragraph.
Examples
Append bold text.
PS>Add-OfficeWordParagraph { Add-OfficeWordText -Text 'Important: ' -Bold }
Writes “Important:” with bold formatting.
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
Add-OfficeWordText [-Bold] [-Color <String>] [-Italic] -Text <String[]> [-Underline <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Bold SwitchParameter
- Apply bold formatting.
- Color String
- Run color (#RRGGBB).
- Italic SwitchParameter
- Apply italic formatting.
- Text String[]
- Text segments to append.
- Underline Nullable`1
- Optional underline style.
Outputs
System.Object