Cmdlet
Add-OfficePowerPointTable
Adds a table to a PowerPoint slide.
Syntax
Add-OfficePowerPointTable
[-CollectionSeparator <String>]
[-Column <Int32>]
[-Culture <CultureInfo>]
[-DictionaryEntrySeparator <String>]
[-DictionaryKeyValueSeparator <String>]
[-Height <OfficeLength>]
[-InputObject] <Object[]>
[-MaxCollectionItems <Int32>]
[-MaxNestingDepth <Int32>]
[-MaxRows <Int32>]
[-NoHeader]
[-NoSplit]
[-PassThru]
[-Property <String[]>]
[-Slide <PowerPointSlideSelector>]
[-Span <Int32>]
[-Style <String>]
[-View <Normal| Transpose>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
InputObjectAdd-OfficePowerPointTable
[-Column <Int32>]
-Columns <Int32>
[-Height <OfficeLength>]
[-PassThru]
-Rows <Int32>
[-Slide <PowerPointSlideSelector>]
[-Span <Int32>]
[-Style <String>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]#Parameter set:
SizeDescription
Builds a table from data rows or creates a blank grid with a fixed size.
Examples
Create a table from objects.
$rows = @([pscustomobject]@{ Item='Alpha'; Qty=2 }, [pscustomobject]@{ Item='Beta'; Qty=4 })
Add-OfficePowerPointTable -Slide $slide -InputObject $rows -X 60 -Y 140 -Width 420 -Height 200Creates a table with headers and two data rows.
Parameters
- -CollectionSeparator String
- Text used between items when a cell contains a collection.
- -Column Int32
- One-based start column in the native twelve-column grid; explicit X overrides it.
- -Culture CultureInfo
- Culture for formatting data; lengths always parse invariantly.
- -DictionaryEntrySeparator String
- Text used between entries when a cell contains a dictionary.
- -DictionaryKeyValueSeparator String
- Text used between a dictionary key and value.
- -Height OfficeLength
- Table height; numbers mean 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.
- -MaxRows Int32
- Maximum data rows per physical slide; omission uses the shared layout capacity.
- -NoHeader SwitchParameter
- Skip writing header row.
- -NoSplit SwitchParameter
- Keep the table together instead of generating continuation slides.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Property String[]
- Optional header order to apply to the table.
- -Slide PowerPointSlideSelector
- Target slide that will receive the table (optional inside DSL).
- -Span Int32
- Number of grid columns; defaults to twelve, and explicit Width overrides it.
- -Style String
- Native table style name or GUID; omission retains the native theme style.
- -View OfficeTableView
- Projection to apply before writing the table.
- Possible values:
Normal,Transpose - -Width OfficeLength
- Table width; numbers mean points.
- -X OfficeLength
- Left offset from the slide origin; numbers mean points.
- -Y OfficeLength
- Top offset from the slide origin; numbers mean points.
- -Columns Int32
- Column count for an empty table.
- -Rows Int32
- Row count for an empty table.
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.