$phpWord
$phpWord : \PhpOffice\PhpWord\PhpWord
PhpWord object
Text break element
$phpWord : \PhpOffice\PhpWord\PhpWord
PhpWord object
$docPart : string
Document part type: Section|Header|Footer|Footnote|Endnote
Used by textrun and cell container to determine where the element is located because it will affect the availability of other element, e.g. footnote will not be available when $docPart is header or footer.
$commentRangeStart : \PhpOffice\PhpWord\Element\Comment
The start position for the linked comment
$commentRangeEnd : \PhpOffice\PhpWord\Element\Comment
The end position for the linked comment
$parent : \PhpOffice\PhpWord\Element\AbstractElement
A reference to the parent
$trackChange : \PhpOffice\PhpWord\Element\TrackChange
changed element info
$paragraphStyle : string|\PhpOffice\PhpWord\Style\Paragraph
Paragraph style
$fontStyle : string|\PhpOffice\PhpWord\Style\Font
Text style
getPhpWord() : \PhpOffice\PhpWord\PhpWord
Get PhpWord
setPhpWord(\PhpOffice\PhpWord\PhpWord $phpWord = null)
Set PhpWord as reference.
\PhpOffice\PhpWord\PhpWord | $phpWord |
getCommentRangeStart() : \PhpOffice\PhpWord\Element\Comment
Get comment start
setCommentRangeStart(\PhpOffice\PhpWord\Element\Comment $value)
Set comment start
\PhpOffice\PhpWord\Element\Comment | $value |
getCommentRangeEnd() : \PhpOffice\PhpWord\Element\Comment
Get comment end
setCommentRangeEnd(\PhpOffice\PhpWord\Element\Comment $value)
Set comment end
\PhpOffice\PhpWord\Element\Comment | $value |
setParentContainer(\PhpOffice\PhpWord\Element\AbstractElement $container)
Set parent container
Passed parameter should be a container, except for Table (contain Row) and Row (contain Cell)
\PhpOffice\PhpWord\Element\AbstractElement | $container |
setTrackChange(\PhpOffice\PhpWord\Element\TrackChange $trackChange)
Sets the trackChange information
\PhpOffice\PhpWord\Element\TrackChange | $trackChange |
getTrackChange() : \PhpOffice\PhpWord\Element\TrackChange
Gets the trackChange information
setFontStyle(mixed $style = null, mixed $paragraphStyle = null) : string|\PhpOffice\PhpWord\Style\Font
Set Text style
mixed | $style | |
mixed | $paragraphStyle |
getFontStyle() : string|\PhpOffice\PhpWord\Style\Font
Get Text style
setParagraphStyle(string|array|\PhpOffice\PhpWord\Style\Paragraph $style = null) : string|\PhpOffice\PhpWord\Style\Paragraph
Set Paragraph style
string|array|\PhpOffice\PhpWord\Style\Paragraph | $style |
getParagraphStyle() : string|\PhpOffice\PhpWord\Style\Paragraph
Get Paragraph style