Drawing
extends WriterPart
in package
Table of Contents
Methods
- __construct() : mixed
- Set parent Xlsx object.
- allDrawings() : array<string|int, BaseDrawing>
- Get an array of all drawings.
- getParentWriter() : Xlsx
- Get parent Xlsx object.
- writeChart() : void
- Write drawings to XML format.
- writeDrawing() : void
- Write drawings to XML format.
- writeDrawings() : string
- Write drawings to XML format.
- writeVMLHeaderFooterImages() : string
- Write VML header/footer images to XML format.
Methods
__construct()
Set parent Xlsx object.
public
__construct(Xlsx $writer) : mixed
Parameters
- $writer : Xlsx
allDrawings()
Get an array of all drawings.
public
allDrawings(Spreadsheet $spreadsheet) : array<string|int, BaseDrawing>
Parameters
- $spreadsheet : Spreadsheet
Return values
array<string|int, BaseDrawing> —All drawings in PhpSpreadsheet
getParentWriter()
Get parent Xlsx object.
public
getParentWriter() : Xlsx
Return values
XlsxwriteChart()
Write drawings to XML format.
public
writeChart(XMLWriter $objWriter, Chart $chart[, int $relationId = -1 ]) : void
Parameters
writeDrawing()
Write drawings to XML format.
public
writeDrawing(XMLWriter $objWriter, BaseDrawing $drawing[, int $relationId = -1 ][, int|null $hlinkClickId = null ]) : void
Parameters
- $objWriter : XMLWriter
- $drawing : BaseDrawing
- $relationId : int = -1
- $hlinkClickId : int|null = null
writeDrawings()
Write drawings to XML format.
public
writeDrawings(Worksheet $worksheet[, bool $includeCharts = false ]) : string
Parameters
- $worksheet : Worksheet
- $includeCharts : bool = false
-
Flag indicating if we should include drawing details for charts
Return values
string —XML Output
writeVMLHeaderFooterImages()
Write VML header/footer images to XML format.
public
writeVMLHeaderFooterImages(Worksheet $worksheet) : string
Parameters
- $worksheet : Worksheet
Return values
string —XML Output