API Reference
Command
Add-OfficePowerPointShape
Adds a basic shape to a slide.
Remarks
Adds a basic shape to a slide.
Examples
Create a rectangle highlight.
PS>Add-OfficePowerPointShape -Slide $slide -ShapeType Rectangle -X 60 -Y 80 -Width 220 -Height 120 -FillColor '#DDEEFF'
Creates a rectangle with a custom fill color.
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-OfficePowerPointShape [-FillColor <String>] [-Height <Double>] [-Name <String>] [-OutlineColor <String>] [-OutlineWidth <Nullable`1>] [-ShapeType <String>] [-Slide <PowerPointSlide>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- FillColor String
- Fill color (hex or named color).
- Height Double
- Shape height in points.
- Name String
- Optional name assigned to the shape.
- OutlineColor String
- Outline color (hex or named color).
- OutlineWidth Nullable`1
- Outline width in points.
- ShapeType String
- Shape geometry preset name (e.g., Rectangle, Ellipse, Line).
- Slide PowerPointSlide
- Target slide that will receive the shape (optional inside DSL).
- Width Double
- Shape width in points.
- X Double
- Left offset (in points) from the slide origin.
- Y Double
- Top offset (in points) from the slide origin.
Outputs
System.Object