OfficeIMO

API Reference

Command

Add-OfficePowerPointTextBox

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointSlide
Outputs
System.Object

Adds a text box to a slide.

Remarks

Adds a text box to a slide.

Examples

Insert a caption.


PS>Add-OfficePowerPointTextBox -Slide $slide -Text 'Quarterly Overview' -X 80 -Y 150
        

Places a text box mid-slide with the provided caption.

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-OfficePowerPointTextBox [-Height <Int32>] [-Slide <PowerPointSlide>] -Text <String> [-Width <Int32>] [-X <Int32>] [-Y <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Height Int32 optionalposition: namedpipeline: False
Box height in points.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Target slide that will receive the text box (optional inside DSL).
Text String requiredposition: namedpipeline: False
Text to render inside the box.
Width Int32 optionalposition: namedpipeline: False
Box width in points.
X Int32 optionalposition: namedpipeline: False
Left offset (in points) from the slide origin.
Y Int32 optionalposition: namedpipeline: False
Top offset (in points) from the slide origin.

Outputs

System.Object