\PhpOffice\PhpSpreadsheet\Writer\XlsFont

Summary

Methods
Properties
Constants
__construct()
setColorIndex()
writeFont()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
mapBold()
mapUnderline()
$colorIndex
$font
$mapUnderline
N/A

Properties

$colorIndex

$colorIndex : int

Color index.

Type

int

$font

$font : \PhpOffice\PhpSpreadsheet\Style\Font

Font.

Type

Font

$mapUnderline

$mapUnderline : array

Map of BIFF2-BIFF8 codes for underline styles.

Type

array — of int

Methods

__construct()

__construct(\PhpOffice\PhpSpreadsheet\Style\Font  $font) : mixed

Constructor.

Parameters

\PhpOffice\PhpSpreadsheet\Style\Font $font

Returns

mixed —

setColorIndex()

setColorIndex(int  $colorIndex) : void

Set the color index.

Parameters

int $colorIndex

writeFont()

writeFont() : string

Get font record data.

Returns

string —

mapBold()

mapBold(bool  $bold) : int

Map to BIFF5-BIFF8 codes for bold.

Parameters

bool $bold

Returns

int —

mapUnderline()

mapUnderline(string  $underline) : int

Map underline.

Parameters

string $underline

Returns

int —