\PhpOffice\PhpWordStyle

Style collection

Summary

Methods
Properties
Constants
addParagraphStyle()
addFontStyle()
addLinkStyle()
addNumberingStyle()
addTitleStyle()
addTableStyle()
countStyles()
resetStyles()
setDefaultParagraphStyle()
getStyles()
getStyle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
setStyleValues()
$styles
N/A

Properties

$styles

$styles : array

Style register

Type

array

Methods

addTableStyle()

addTableStyle(string  $styleName, array  $styleTable, array|null  $styleFirstRow = null) : \PhpOffice\PhpWord\Style\Table

Add table style

Parameters

string $styleName
array $styleTable
array|null $styleFirstRow

Returns

\PhpOffice\PhpWord\Style\Table

countStyles()

countStyles() : integer

Count styles

Returns

integer

resetStyles()

resetStyles() 

Reset styles.

getStyle()

getStyle(string  $styleName) : \PhpOffice\PhpWord\Style\AbstractStyle

Get style by name

Parameters

string $styleName

Returns

\PhpOffice\PhpWord\Style\AbstractStyle

Paragraph|Font|Table|Numbering