\PhpOffice\PhpWord\Writer\RTF\StyleFont

RTF font style writer

Summary

Methods
Properties
Constants
write()
__construct()
setParentWriter()
getParentWriter()
getStyle()
setNameIndex()
setColorIndex()
No public properties found
No constants found
assembleCss()
getValueIf()
No protected properties found
N/A
No private methods found
$parentWriter
$style
$nameIndex
$colorIndex
N/A

Properties

$nameIndex

$nameIndex : integer

Type

integer — Font name index

$colorIndex

$colorIndex : integer

Type

integer — Font color index

Methods

write()

write() : string

Write style

Returns

string

setNameIndex()

setNameIndex(integer  $value) 

Set font name index.

Parameters

integer $value

setColorIndex()

setColorIndex(integer  $value) 

Set font color index.

Parameters

integer $value

assembleCss()

assembleCss(array  $css) : string

Takes array where of CSS properties / values and converts to CSS string

Parameters

array $css

Returns

string

getValueIf()

getValueIf(boolean|null  $condition, string  $value) : string

Get value if .

..

Parameters

boolean|null $condition
string $value

Returns

string