class Style extends WriterPart (View source)

Methods

getParentWriter()

Get parent Xlsx object.

__construct(Xlsx $pWriter)

Set parent Xlsx object.

string
writeStyles(Spreadsheet $spreadsheet)

Write styles to XML format.

Style[]
allStyles(Spreadsheet $spreadsheet)

Get an array of all styles.

allConditionalStyles(Spreadsheet $spreadsheet)

Get an array of all conditional styles.

Fill[]
allFills(Spreadsheet $spreadsheet)

Get an array of all fills.

Font[]
allFonts(Spreadsheet $spreadsheet)

Get an array of all fonts.

allBorders(Spreadsheet $spreadsheet)

Get an array of all borders.

allNumberFormats(Spreadsheet $spreadsheet)

Get an array of all number formats.

Details

Xlsx getParentWriter()

Get parent Xlsx object.

Return Value

Xlsx

__construct(Xlsx $pWriter)

Set parent Xlsx object.

Parameters

Xlsx $pWriter

string writeStyles(Spreadsheet $spreadsheet)

Write styles to XML format.

Parameters

Spreadsheet $spreadsheet

Return Value

string XML Output

Exceptions

Exception

Style[] allStyles(Spreadsheet $spreadsheet)

Get an array of all styles.

Parameters

Spreadsheet $spreadsheet

Return Value

Style[] All styles in PhpSpreadsheet

Conditional[] allConditionalStyles(Spreadsheet $spreadsheet)

Get an array of all conditional styles.

Parameters

Spreadsheet $spreadsheet

Return Value

Conditional[] All conditional styles in PhpSpreadsheet

Fill[] allFills(Spreadsheet $spreadsheet)

Get an array of all fills.

Parameters

Spreadsheet $spreadsheet

Return Value

Fill[] All fills in PhpSpreadsheet

Font[] allFonts(Spreadsheet $spreadsheet)

Get an array of all fonts.

Parameters

Spreadsheet $spreadsheet

Return Value

Font[] All fonts in PhpSpreadsheet

Borders[] allBorders(Spreadsheet $spreadsheet)

Get an array of all borders.

Parameters

Spreadsheet $spreadsheet

Return Value

Borders[] All borders in PhpSpreadsheet

NumberFormat[] allNumberFormats(Spreadsheet $spreadsheet)

Get an array of all number formats.

Parameters

Spreadsheet $spreadsheet

Return Value

NumberFormat[] All number formats in PhpSpreadsheet