OfficeIMO

API Reference

Command

Add-OfficePowerPointTable

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointSlide
Outputs
System.Object

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: Data

Parameters

Data Object[] requiredposition: namedpipeline: False
Source objects to convert into table rows.
Headers String[] optionalposition: namedpipeline: False
Optional header order to apply to the table.
Height Double optionalposition: namedpipeline: False
Table height in points.
NoHeader SwitchParameter optionalposition: namedpipeline: False
Skip writing header row.
Slide PowerPointSlide optionalposition: 0pipeline: True (ByValue)
Target slide that will receive the table (optional inside DSL).
StyleId String optionalposition: namedpipeline: False
Optional table style ID (GUID string).
Width Double optionalposition: namedpipeline: False
Table width in points.
X Double optionalposition: namedpipeline: False
Left offset (in points) from the slide origin.
Y Double optionalposition: namedpipeline: False
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: Size

Parameters

Columns Int32 requiredposition: namedpipeline: False
Column count for an empty table.
Height Double optionalposition: namedpipeline: False
Table height in points.
Rows Int32 requiredposition: namedpipeline: False
Row count for an empty table.
Slide PowerPointSlide optionalposition: 0pipeline: True (ByValue)
Target slide that will receive the table (optional inside DSL).
StyleId String optionalposition: namedpipeline: False
Optional table style ID (GUID string).
Width Double optionalposition: namedpipeline: False
Table width in points.
X Double optionalposition: namedpipeline: False
Left offset (in points) from the slide origin.
Y Double optionalposition: namedpipeline: False
Top offset (in points) from the slide origin.

Outputs

System.Object