MergedCellStyle
in package
Table of Contents
Properties
- $firstRowStyle : Style|null
- $headerStyle : Style|null
- $matched : bool
Methods
- getMatched() : bool
- Indicate whether the last call to getMergedStyle found any conditional or table styles affecting the cell in question.
- getMergedStyle() : Style
- Return a style that combines the base style for a cell with any conditional or table styles applicable to the cell.
- assessBuiltinTables() : void
- assessConditionals() : void
- assessTables() : void
Properties
$firstRowStyle
private
static Style|null
$firstRowStyle
= null
$headerStyle
private
static Style|null
$headerStyle
= null
$matched
private
bool
$matched
= false
Methods
getMatched()
Indicate whether the last call to getMergedStyle found any conditional or table styles affecting the cell in question.
public
getMatched() : bool
Return values
boolgetMergedStyle()
Return a style that combines the base style for a cell with any conditional or table styles applicable to the cell.
public
getMergedStyle(Worksheet $worksheet, string $coordinate[, bool $tableFormats = true ][, bool $conditionals = true ][, bool|null $builtInTableStyles = null ]) : Style
Parameters
- $worksheet : Worksheet
- $coordinate : string
- $tableFormats : bool = true
-
True/false to indicate whether custom table styles should be considered. Note that builtin table styles are not supported.
- $conditionals : bool = true
-
True/false to indicate whether conditional styles should be considered.
- $builtInTableStyles : bool|null = null
Return values
StyleassessBuiltinTables()
private
assessBuiltinTables(Worksheet $worksheet, string $coordinate, StyleMerger $styleMerger) : void
Parameters
- $worksheet : Worksheet
- $coordinate : string
- $styleMerger : StyleMerger
assessConditionals()
private
assessConditionals(Worksheet $worksheet, string $coordinate, StyleMerger $styleMerger) : void
Parameters
- $worksheet : Worksheet
- $coordinate : string
- $styleMerger : StyleMerger
assessTables()
private
assessTables(Worksheet $worksheet, string $coordinate, StyleMerger $styleMerger) : void
Parameters
- $worksheet : Worksheet
- $coordinate : string
- $styleMerger : StyleMerger