Documentation

Style extends WriterPart
in package

Table of Contents

Properties

$parentWriter  : Xlsx
Parent Xlsx object.

Methods

__construct()  : mixed
Set parent Xlsx object.
allBorders()  : array<string|int, Borders>
Get an array of all borders.
allConditionalStyles()  : array<string|int, Conditional>
Get an array of all conditional styles.
allFills()  : array<string|int, Fill>
Get an array of all fills.
allFonts()  : array<string|int, Font>
Get an array of all fonts.
allNumberFormats()  : array<string|int, NumberFormat>
Get an array of all number formats.
allStyles()  : array<string|int, Style>
Get an array of all styles.
getParentWriter()  : Xlsx
Get parent Xlsx object.
writeStyles()  : string
Write styles to XML format.
startFont()  : void
writeBorder()  : void
Write Border.
writeBorderPr()  : void
Write BorderPr.
writeCellStyleDxf()  : void
Write Cell Style Dxf.
writeCellStyleXf()  : void
Write Cell Style Xf.
writeFill()  : void
Write Fill.
writeFont()  : void
Write Font.
writeGradientFill()  : void
Write Gradient Fill.
writeNumFmt()  : void
Write NumberFormat.
writePatternColors()  : bool
writePatternFill()  : void
Write Pattern Fill.

Properties

Methods

__construct()

Set parent Xlsx object.

public __construct(Xlsx $writer) : mixed
Parameters
$writer : Xlsx

allBorders()

Get an array of all borders.

public allBorders(Spreadsheet $spreadsheet) : array<string|int, Borders>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, Borders>

All borders in PhpSpreadsheet

allConditionalStyles()

Get an array of all conditional styles.

public allConditionalStyles(Spreadsheet $spreadsheet) : array<string|int, Conditional>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, Conditional>

All conditional styles in PhpSpreadsheet

allFills()

Get an array of all fills.

public allFills(Spreadsheet $spreadsheet) : array<string|int, Fill>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, Fill>

All fills in PhpSpreadsheet

allFonts()

Get an array of all fonts.

public allFonts(Spreadsheet $spreadsheet) : array<string|int, Font>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, Font>

All fonts in PhpSpreadsheet

allNumberFormats()

Get an array of all number formats.

public allNumberFormats(Spreadsheet $spreadsheet) : array<string|int, NumberFormat>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, NumberFormat>

All number formats in PhpSpreadsheet

allStyles()

Get an array of all styles.

public allStyles(Spreadsheet $spreadsheet) : array<string|int, Style>
Parameters
$spreadsheet : Spreadsheet
Return values
array<string|int, Style>

All styles in PhpSpreadsheet

getParentWriter()

Get parent Xlsx object.

public getParentWriter() : Xlsx
Return values
Xlsx

writeStyles()

Write styles to XML format.

public writeStyles(Spreadsheet $spreadsheet) : string
Parameters
$spreadsheet : Spreadsheet
Return values
string

XML Output

startFont()

private startFont(XMLWriter $objWriter, bool &$fontStarted) : void
Parameters
$objWriter : XMLWriter
$fontStarted : bool

writeBorderPr()

Write BorderPr.

private writeBorderPr(XMLWriter $objWriter, string $name, Border $border) : void
Parameters
$objWriter : XMLWriter
$name : string

Element name

$border : Border

writeNumFmt()

Write NumberFormat.

private writeNumFmt(XMLWriter $objWriter, NumberFormat|null $numberFormat[, int $id = 0 ]) : void
Parameters
$objWriter : XMLWriter
$numberFormat : NumberFormat|null
$id : int = 0

Number Format identifier

writePatternColors()

private static writePatternColors(Fill $fill) : bool
Parameters
$fill : Fill
Return values
bool

        
On this page

Search results