Documentation

Font extends AbstractStyle
in package

RTF font style writer.

Tags
since
0.11.0

Table of Contents

Properties

$colorIndex  : int
$nameIndex  : int
$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.
setColorIndex()  : void
Set font color index.
setNameIndex()  : void
Set font name index.
setParentWriter()  : void
Set parent writer.
write()  : string
Write style.
getValueIf()  : string
Get value if .

Properties

$colorIndex

private int $colorIndex = 0

Font color index

$nameIndex

private int $nameIndex = 0

Font name index

Methods

setColorIndex()

Set font color index.

public setColorIndex([int $value = 0 ]) : void
Parameters
$value : int = 0

setNameIndex()

Set font name index.

public setNameIndex([int $value = 0 ]) : void
Parameters
$value : int = 0

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

        
On this page

Search results