OfficeIMO

API Reference

Command

Add-OfficeWordText

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

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 Sets

Parameters

Bold SwitchParameter optionalposition: namedpipeline: False
Apply bold formatting.
Color String optionalposition: namedpipeline: False
Run color (#RRGGBB).
Italic SwitchParameter optionalposition: namedpipeline: False
Apply italic formatting.
Text String[] requiredposition: 0pipeline: False
Text segments to append.
Underline Nullable`1 optionalposition: namedpipeline: False
Optional underline style.

Outputs

System.Object