Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Add-OfficePowerPointTextBox

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

Adds a text box to a slide.

Remarks

Creates a rectangle at the requested coordinates and assigns the supplied text.

Examples

Authored help example

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