Get-OfficePowerPointShape
Reads shape summaries from a slide or presentation.
Syntax
Get-OfficePowerPointShape
[-Kind <OfficePowerPointShapeKind[]>]
[-Name <String[]>]
[-ShapeIndex <Int32[]>]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#SlideGet-OfficePowerPointShape
[-Index <Int32>]
[-Kind <OfficePowerPointShapeKind[]>]
[-Name <String[]>]
[-Presentation <PowerPointPresentation>]
[-ShapeIndex <Int32[]>]
[<CommonParameters>]#PresentationDescription
Returns PowerShell-friendly metadata for text boxes, pictures, tables, charts, and auto shapes.
Examples
Inspect one slide.
Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Get-OfficePowerPointShapeReturns shape summaries for the selected slide.
Find pictures on a slide.
Get-OfficePowerPointShape -Presentation $ppt -Index 0 -Kind PictureFilters the slide output to picture shapes only.
Parameters
- -Kind OfficePowerPointShapeKind[]
- Optional shape kind filter.
- Possible values:
TextBox,Picture,Table,Chart,AutoShape,GroupShape - -Name String[]
- Optional wildcard filter for shape names.
- -ShapeIndex Int32[]
- Optional zero-based shape index filter.
- -Slide PowerPointSlide
- Slide to inspect (optional inside the DSL).
- -Index Int32
- Optional zero-based slide index when reading from a presentation.
- -Presentation PowerPointPresentation
- Presentation whose slides should be inspected.
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.
Outputs
PSWriteOffice.Services.PowerPoint.PowerPointShapeInfo: PowerShell-friendly description of a PowerPoint shape.