$styles
$styles : array
Style register
Style collection
addParagraphStyle(string $styleName, array|\PhpOffice\PhpWord\Style\AbstractStyle $styles) : \PhpOffice\PhpWord\Style\Paragraph
Add paragraph style
string | $styleName | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $styles |
addFontStyle(string $styleName, array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle, array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle = null) : \PhpOffice\PhpWord\Style\Font
Add font style
string | $styleName | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $fontStyle | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $paragraphStyle |
addLinkStyle(string $styleName, array|\PhpOffice\PhpWord\Style\AbstractStyle $styles) : \PhpOffice\PhpWord\Style\Font
Add link style
string | $styleName | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $styles |
addNumberingStyle(string $styleName, array|\PhpOffice\PhpWord\Style\AbstractStyle $styleValues) : \PhpOffice\PhpWord\Style\Numbering
Add numbering style
string | $styleName | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $styleValues |
addTitleStyle(integer|null $depth, array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle, array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle = null) : \PhpOffice\PhpWord\Style\Font
Add title style
integer|null | $depth | Provide null to set title font |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $fontStyle | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $paragraphStyle |
addTableStyle(string $styleName, array $styleTable, array|null $styleFirstRow = null) : \PhpOffice\PhpWord\Style\Table
Add table style
string | $styleName | |
array | $styleTable | |
array|null | $styleFirstRow |
setDefaultParagraphStyle(array|\PhpOffice\PhpWord\Style\AbstractStyle $styles) : \PhpOffice\PhpWord\Style\Paragraph
Set default paragraph style
array|\PhpOffice\PhpWord\Style\AbstractStyle | $styles | Paragraph style definition |
getStyles() : array<mixed,\PhpOffice\PhpWord\Style\AbstractStyle>
Get all styles
getStyle(string $styleName) : \PhpOffice\PhpWord\Style\AbstractStyle
Get style by name
string | $styleName |
Paragraph|Font|Table|Numbering
setStyleValues(string $name, \PhpOffice\PhpWord\Style\AbstractStyle $style, array|\PhpOffice\PhpWord\Style\AbstractStyle $value = null) : \PhpOffice\PhpWord\Style\AbstractStyle
Set style values and put it to static style collection
The $styleValues could be an array or object
string | $name | |
\PhpOffice\PhpWord\Style\AbstractStyle | $style | |
array|\PhpOffice\PhpWord\Style\AbstractStyle | $value |
Loading…