API Reference
Command
Add-OfficePowerPointTable
Adds a table to a PowerPoint slide.
Remarks
Adds a table to a PowerPoint slide.
Examples
Create a table from objects.
PS>$rows = @([pscustomobject]@{ Item='Alpha'; Qty=2 }, [pscustomobject]@{ Item='Beta'; Qty=4 })
Add-OfficePowerPointTable -Slide $slide -Data $rows -X 60 -Y 140 -Width 420 -Height 200
Creates a table with headers and two data rows.
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-OfficePowerPointTable -Data <Object[]> [-Headers <String[]>] [-Height <Double>] [-NoHeader] [-Slide <PowerPointSlide>] [-StyleId <String>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
DataParameters
- Data Object[]
- Source objects to convert into table rows.
- Headers String[]
- Optional header order to apply to the table.
- Height Double
- Table height in points.
- NoHeader SwitchParameter
- Skip writing header row.
- Slide PowerPointSlide
- Target slide that will receive the table (optional inside DSL).
- StyleId String
- Optional table style ID (GUID string).
- Width Double
- Table 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
Add-OfficePowerPointTable -Columns <Int32> [-Height <Double>] -Rows <Int32> [-Slide <PowerPointSlide>] [-StyleId <String>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
SizeParameters
- Columns Int32
- Column count for an empty table.
- Height Double
- Table height in points.
- Rows Int32
- Row count for an empty table.
- Slide PowerPointSlide
- Target slide that will receive the table (optional inside DSL).
- StyleId String
- Optional table style ID (GUID string).
- Width Double
- Table 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