class Drawing extends WriterPart (View source)

Methods

getParentWriter()

Get parent Xlsx object.

__construct(Xlsx $pWriter)

Set parent Xlsx object.

string
writeDrawings(Worksheet $pWorksheet, bool $includeCharts = false)

Write drawings to XML format.

writeChart(XMLWriter $objWriter, Chart $pChart, int $pRelationId = -1)

Write drawings to XML format.

writeDrawing(XMLWriter $objWriter, BaseDrawing $pDrawing, int $pRelationId = -1, null|int $hlinkClickId = null)

Write drawings to XML format.

string
writeVMLHeaderFooterImages(Worksheet $pWorksheet)

Write VML header/footer images to XML format.

allDrawings(Spreadsheet $spreadsheet)

Get an array of all drawings.

Details

Xlsx getParentWriter()

Get parent Xlsx object.

Return Value

Xlsx

__construct(Xlsx $pWriter)

Set parent Xlsx object.

Parameters

Xlsx $pWriter

string writeDrawings(Worksheet $pWorksheet, bool $includeCharts = false)

Write drawings to XML format.

Parameters

Worksheet $pWorksheet
bool $includeCharts Flag indicating if we should include drawing details for charts

Return Value

string XML Output

Exceptions

Exception

writeChart(XMLWriter $objWriter, Chart $pChart, int $pRelationId = -1)

Write drawings to XML format.

Parameters

XMLWriter $objWriter XML Writer
Chart $pChart
int $pRelationId

writeDrawing(XMLWriter $objWriter, BaseDrawing $pDrawing, int $pRelationId = -1, null|int $hlinkClickId = null)

Write drawings to XML format.

Parameters

XMLWriter $objWriter XML Writer
BaseDrawing $pDrawing
int $pRelationId
null|int $hlinkClickId

Exceptions

Exception

string writeVMLHeaderFooterImages(Worksheet $pWorksheet)

Write VML header/footer images to XML format.

Parameters

Worksheet $pWorksheet

Return Value

string XML Output

Exceptions

Exception

Drawing[] allDrawings(Spreadsheet $spreadsheet)

Get an array of all drawings.

Parameters

Spreadsheet $spreadsheet

Return Value

Drawing[] All drawings in PhpSpreadsheet