API Reference
Cmdlet
Add-OfficePowerPointTable
Adds a table to a PowerPoint slide.
Remarks
Builds a table from data rows or creates a blank grid with a fixed size.
Examples
Create a table from objects.
PS>
$rows = @([pscustomobject]@{ Item='Alpha'; Qty=2 }, [pscustomobject]@{ Item='Beta'; Qty=4 })
Add-OfficePowerPointTable -Slide $slide -InputObject $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 [-CollectionSeparator <String>] [-DictionaryEntrySeparator <String>] [-DictionaryKeyValueSeparator <String>] [-Header <String[]>] [-Height <Double>] -InputObject <Object> [-MaxCollectionItems <Int32>] [-MaxNestingDepth <Int32>] [-NoHeader] [-PassThru] [-Slide <PowerPointSlide>] [-StyleId <String>] [-View <Normal|Transpose>] [-Width <Double>] [-X <Double>] [-Y <Double>] [<CommonParameters>]#Parameter set:
InputObjectParameters
- CollectionSeparator String
- Text used between items when a cell contains a collection.
- DictionaryEntrySeparator String
- Text used between entries when a cell contains a dictionary.
- DictionaryKeyValueSeparator String
- Text used between a dictionary key and value.
- Header String[]
- Optional header order to apply to the table.
- Height Double
- Table height in points.
- InputObject Object
- Source objects to convert into table rows.
- MaxCollectionItems Int32
- Maximum number of items allowed in one nested collection or dictionary cell. Defaults to 1,048,575; increase explicitly for trusted larger values.
- MaxNestingDepth Int32
- Maximum nesting depth allowed while normalizing one cell value. Defaults to 64; increase explicitly for trusted deeper values.
- NoHeader SwitchParameter
- Skip writing header row.
- PassThru SwitchParameter
- Emit the object created or changed by the command.
- Slide PowerPointSlide
- Target slide that will receive the table (optional inside DSL).
- StyleId String
- Optional table style ID (GUID string).
- View OfficeTableView
- Projection to apply before writing the table.
- Possible values:
Normal,Transpose - 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.
Add-OfficePowerPointTable -Columns <Int32> [-Height <Double>] [-PassThru] -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.
- PassThru SwitchParameter
- Emit the object created or changed by the command.
- 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.