Documentation

Paragraph extends AbstractStyle
in package

RTF paragraph style writer.

Tags
since
0.11.0

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.

Methods

setNestedLevel()

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
string

getValueIf()

Get value if .

protected getValueIf(null|bool $condition, string $value) : string

..

Parameters
$condition : null|bool
$value : string
Return values
string

writeIndentation()

Writes an \PhpOffice\PhpWord\Style\Indentation.

private writeIndentation([null|Indentation $indent = null ]) : string
Parameters
$indent : null|Indentation = null
Return values
string

writeTabs()

Writes tabs.

private writeTabs([array<string|int, Tab$tabs = null ]) : string
Parameters
$tabs : array<string|int, Tab> = null
Return values
string

        
On this page

Search results