OfficeIMO

API Reference

Command

Add-OfficeWordImage

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Inserts an image into the current paragraph.

Remarks

Inserts an image into the current paragraph.

Examples

Add a logo.


PS>Add-OfficeWordParagraph { Add-OfficeWordImage -Path .\logo.png -Width 96 -Height 32 }
        

Embeds logo.png at the specified size.

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-OfficeWordImage [-Description <String>] [-Height <Nullable`1>] [-PassThru] -Path <String> [-Width <Nullable`1>] [-Wrap <InLineWithText>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Description String optionalposition: namedpipeline: False
Optional description/alt text.
Height Nullable`1 optionalposition: namedpipeline: False
Height in points.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created WordImage.
Path String requiredposition: 0pipeline: False
Path to the image file.
Width Nullable`1 optionalposition: namedpipeline: False
Width in points.
Wrap WrapTextImage optionalposition: namedpipeline: Falsevalues: 7
Wrap mode for the image.
Possible values: InLineWithText, Square, Tight, Through, TopAndBottom, BehindText, InFrontOfText

Outputs

System.Object