Properties

$dateFormat

$dateFormat : string

Type

string — Date format

$autoStyles

$autoStyles : array

Auto style collection

Collect inline style information from section, image, and table elements

Type

array

Methods

write()

write() : string

Write part

Returns

string

writeCommonRootAttributes()

writeCommonRootAttributes(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write common root attributes.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeFontFaces()

writeFontFaces(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write font faces declaration.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeText()

writeText(string  $content) : boolean

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()

Parameters

string $content

The text string to write

Returns

boolean —

Returns true on success or false on failure

writeAutoStyles()

writeAutoStyles(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write automatic styles other than fonts and paragraphs.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeTextStyles()

writeTextStyles(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write automatic styles.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

getAutoStyles()

getAutoStyles(\PhpOffice\PhpWord\PhpWord  $phpWord) 

Get automatic styles.

Parameters

\PhpOffice\PhpWord\PhpWord $phpWord

getContainerStyle()

getContainerStyle(\PhpOffice\PhpWord\Element\AbstractContainer  $container, integer  $paragraphStyleCount, integer  $fontStyleCount) 

Get all styles of each elements in container recursively

Table style can be null or string of the style name

Parameters

\PhpOffice\PhpWord\Element\AbstractContainer $container
integer $paragraphStyleCount
integer $fontStyleCount

getElementStyle()

getElementStyle(\PhpOffice\PhpWord\Element\Text  $element, integer  $paragraphStyleCount, integer  $fontStyleCount) 

Get style of individual element

Parameters

\PhpOffice\PhpWord\Element\Text $element
integer $paragraphStyleCount
integer $fontStyleCount