createTableStyle
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
createTableStyle

Creates a table style in the PowerPoint presentation.
Description
public createTableStyle ($name, array $styles)
This method creates a table style in the PowerPoint presentation.
PowerPoint has limitations when creating table styles, as only a few styles are available. Additional styles can be applied to the table contents using phppptx methods.
Parameters
name
Table style name.
styles
Key | Type | Description |
---|---|---|
backgroundColor | string | HEX color. |
bold | bool | |
border | array |
Available positions:
Available styles:
|
italic | bool |
Available types:
- wholeTbl : whole table
- band1H : band 1 horizontal
- band2H : band 2 horizontal
- band1V : band 1 vertical
- band2V : band 2 vertical
- lastCol : last column
- firstCol : first column
- lastRow : last row
- firstRow : first row
- neCell : northeast cell
- seCell : southeast cell
- swCell : southwest cell
- nwCell : northwest cell
Exceptions
Duplicated table style name.
Release notes
- phppptx 4.0:
- new method.