Paragraph
extends AbstractStyle
in package
RTF paragraph style writer.
Tags
Table of Contents
Constants
- JUSTIFY = \PhpOffice\PhpWord\SimpleType\Jc::JUSTIFY
- LEFT = \PhpOffice\PhpWord\SimpleType\Jc::LEFT
- RIGHT = \PhpOffice\PhpWord\SimpleType\Jc::RIGHT
Properties
- $nestedLevel : int
- Depth of table container nested level; Primarily used for RTF writer/reader.
- $parentWriter : RTF
- Parent writer.
- $style : null|array<string|int, mixed>|AbstractStyle
- Style.
Methods
- __construct() : mixed
- Create new instance.
- getParentWriter() : RTF
- Get parent writer.
- getStyle() : null|array<string|int, mixed>|string|AbstractStyle
- Get style.
- setNestedLevel() : void
- Set nested level.
- setParentWriter() : void
- Set parent writer.
- write() : string
- Write style.
- getValueIf() : string
- Get value if .
- writeIndentation() : string
- Writes an \PhpOffice\PhpWord\Style\Indentation.
- writeTabs() : string
- Writes tabs.
Constants
JUSTIFY
private
mixed
JUSTIFY
= \PhpOffice\PhpWord\SimpleType\Jc::JUSTIFY
LEFT
private
mixed
LEFT
= \PhpOffice\PhpWord\SimpleType\Jc::LEFT
RIGHT
private
mixed
RIGHT
= \PhpOffice\PhpWord\SimpleType\Jc::RIGHT
Properties
$nestedLevel
Depth of table container nested level; Primarily used for RTF writer/reader.
private
int
$nestedLevel
= 0
0 = Not in a table; 1 = in a table; 2 = in a table inside another table, etc.
$parentWriter
Parent writer.
private
RTF
$parentWriter
$style
Style.
private
null|array<string|int, mixed>|AbstractStyle
$style
Methods
__construct()
Create new instance.
public
__construct([array<string|int, mixed>|AbstractStyle $style = null ]) : mixed
Parameters
- $style : array<string|int, mixed>|AbstractStyle = null
getParentWriter()
Get parent writer.
public
getParentWriter() : RTF
Return values
RTFgetStyle()
Get style.
public
getStyle() : null|array<string|int, mixed>|string|AbstractStyle
Return values
null|array<string|int, mixed>|string|AbstractStylesetNestedLevel()
Set nested level.
public
setNestedLevel(int $value) : void
Parameters
- $value : int
setParentWriter()
Set parent writer.
public
setParentWriter(RTF $writer) : void
Parameters
- $writer : RTF
write()
Write style.
public
write() : string
Return values
stringgetValueIf()
Get value if .
protected
getValueIf(null|bool $condition, string $value) : string
..
Parameters
- $condition : null|bool
- $value : string
Return values
stringwriteIndentation()
Writes an \PhpOffice\PhpWord\Style\Indentation.
private
writeIndentation([null|Indentation $indent = null ]) : string
Parameters
- $indent : null|Indentation = null
Return values
stringwriteTabs()
Writes tabs.
private
writeTabs([array<string|int, Tab> $tabs = null ]) : string
Parameters
- $tabs : array<string|int, Tab> = null