OfficeIMO

API Reference

Command

Get-OfficePowerPointPlaceholder

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointSlide
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox

Gets placeholder text boxes from a slide.

Remarks

Gets placeholder text boxes from a slide.

Examples

Get the title placeholder.


PS>Get-OfficePowerPointPlaceholder -Slide $slide -PlaceholderType Title
        

Returns the title placeholder textbox if present.

Get placeholders inside a slide DSL block.


PS>New-OfficePowerPoint -Path .\deck.pptx { PptSlide { Get-OfficePowerPointPlaceholder -PlaceholderType Title } }
        

Uses the current slide context.

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

Get-OfficePowerPointPlaceholder [-Index <Nullable`1>] [-PlaceholderType <String>] [-Slide <PowerPointSlide>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Index Nullable`1 optionalposition: namedpipeline: False
Optional placeholder index.
PlaceholderType String optionalposition: namedpipeline: Falsealiases: Type
Placeholder type to filter on.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to inspect (optional inside DSL).

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox