Documentation

Xf
in package

Table of Contents

Methods

__construct()  : mixed
Constructor.
setBgColor()  : void
Sets the cell's background color.
setBottomColor()  : void
Sets the cell's bottom border color.
setDiagColor()  : void
Sets the cell's diagonal border color.
setFgColor()  : void
Sets the cell's foreground color.
setFontIndex()  : void
Set the font index.
setIsStyleXf()  : void
Is this a style XF ?
setLeftColor()  : void
Sets the cell's left border color.
setNumberFormatIndex()  : void
Sets the index to the number format record It can be date, time, currency, etc.
setRightColor()  : void
Sets the cell's right border color.
setTopColor()  : void
Sets the cell's top border color.
writeXf()  : string
Generate an Excel BIFF XF record (style or cell).

Methods

__construct()

Constructor.

public __construct(Style $style) : mixed
Parameters
$style : Style

The XF format

setBgColor()

Sets the cell's background color.

public setBgColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setBottomColor()

Sets the cell's bottom border color.

public setBottomColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setDiagColor()

Sets the cell's diagonal border color.

public setDiagColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setFgColor()

Sets the cell's foreground color.

public setFgColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setFontIndex()

Set the font index.

public setFontIndex(int $value) : void
Parameters
$value : int

Font index, note that value 4 does not exist

setIsStyleXf()

Is this a style XF ?

public setIsStyleXf(bool $value) : void
Parameters
$value : bool

setLeftColor()

Sets the cell's left border color.

public setLeftColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setNumberFormatIndex()

Sets the index to the number format record It can be date, time, currency, etc.

public setNumberFormatIndex(int $numberFormatIndex) : void

..

Parameters
$numberFormatIndex : int

Index to format record

setRightColor()

Sets the cell's right border color.

public setRightColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

setTopColor()

Sets the cell's top border color.

public setTopColor(int $colorIndex) : void
Parameters
$colorIndex : int

Color index

writeXf()

Generate an Excel BIFF XF record (style or cell).

public writeXf() : string
Return values
string

The XF record


        
On this page

Search results