Style
in package
Table of Contents
Constants
- CELL_STYLE_PREFIX = 'ce'
- COLUMN_STYLE_PREFIX = 'co'
- ROW_STYLE_PREFIX = 'ro'
- TABLE_STYLE_PREFIX = 'ta'
Properties
Methods
- __construct() : mixed
- write() : void
- writeColumnStyles() : void
- writeRowStyles() : void
- writeTableStyle() : void
- mapUnderlineStyle() : string
- writeColumnProperties() : void
- writeRowProperties() : void
- writeTextProperties() : void
- mapBorderStyle() : string
- mapBorderWidth() : string
- mapHorizontalAlignment() : string
- mapVerticalAlignment() : string
- writeBordersStyle() : void
- writeBorderStyle() : void
- writeCellProperties() : void
- writeFillStyle() : void
Constants
CELL_STYLE_PREFIX
public
mixed
CELL_STYLE_PREFIX
= 'ce'
COLUMN_STYLE_PREFIX
public
mixed
COLUMN_STYLE_PREFIX
= 'co'
ROW_STYLE_PREFIX
public
mixed
ROW_STYLE_PREFIX
= 'ro'
TABLE_STYLE_PREFIX
public
mixed
TABLE_STYLE_PREFIX
= 'ta'
Properties
$writer
private
XMLWriter
$writer
Methods
__construct()
public
__construct(XMLWriter $writer) : mixed
Parameters
- $writer : XMLWriter
write()
public
write(Style $style) : void
Parameters
- $style : Style
writeColumnStyles()
public
writeColumnStyles(ColumnDimension $columnDimension, int $sheetId) : void
Parameters
- $columnDimension : ColumnDimension
- $sheetId : int
writeRowStyles()
public
writeRowStyles(RowDimension $rowDimension, int $sheetId) : void
Parameters
- $rowDimension : RowDimension
- $sheetId : int
writeTableStyle()
public
writeTableStyle(Worksheet $worksheet, int $sheetId) : void
Parameters
- $worksheet : Worksheet
- $sheetId : int
mapUnderlineStyle()
protected
mapUnderlineStyle(Font $font) : string
Parameters
- $font : Font
Return values
stringwriteColumnProperties()
protected
writeColumnProperties(ColumnDimension $columnDimension) : void
Parameters
- $columnDimension : ColumnDimension
writeRowProperties()
protected
writeRowProperties(RowDimension $rowDimension) : void
Parameters
- $rowDimension : RowDimension
writeTextProperties()
protected
writeTextProperties(Style $style) : void
Parameters
- $style : Style
mapBorderStyle()
private
mapBorderStyle(Border $border) : string
Parameters
- $border : Border
Return values
stringmapBorderWidth()
private
mapBorderWidth(Border $border) : string
Parameters
- $border : Border
Return values
stringmapHorizontalAlignment()
private
mapHorizontalAlignment(string $horizontalAlignment) : string
Parameters
- $horizontalAlignment : string
Return values
stringmapVerticalAlignment()
private
mapVerticalAlignment(string $verticalAlignment) : string
Parameters
- $verticalAlignment : string
Return values
stringwriteBordersStyle()
private
writeBordersStyle(Borders $borders) : void
Parameters
- $borders : Borders
writeBorderStyle()
private
writeBorderStyle(string $direction, Border $border) : void
Parameters
- $direction : string
- $border : Border
writeCellProperties()
private
writeCellProperties(Style $style) : void
Parameters
- $style : Style
writeFillStyle()
private
writeFillStyle(Fill $fill) : void
Parameters
- $fill : Fill