Novis\Spreadsheet\Sheet
One sheet of a Workbook. Add its rows in order with addRow or addRows, and a row cannot be changed after that. The other methods add merged cells, links, notes, tables and more. They can use any row you already added.
Returned by
You get a Novis\Spreadsheet\Sheet from these methods:
Members
16 members.
| Member | Signature |
|---|---|
constructor | constructor(uint $index, Writer $writer, callable(uint, array<mixed>, RowOptions): void $add, callable(uint, ?uint, bool): void $ready, callable(bytes): void $send, callable(uint, string): uint $position, callable(uint, uint): string $columnRange): void |
addRow | addRow(array<mixed> $row, RowOptions $options = null): Sheet |
addRows | addRows(array<array<mixed>>|Iterable<array<mixed>>|Iterator<array<mixed>> $rows): Sheet |
cell | cell(string $key, int $row): string |
column | column(string $key): string |
mergeCells | mergeCells(string $range): Sheet |
addLink | addLink(string $cell, string $target, ?{ text?: string, tooltip?: string } $options = null): Sheet |
addNote | addNote(string $cell, string $text, ?{ author?: string } $options = null): Sheet |
addValidation | addValidation(string $range, Validation $rule): Sheet |
addOutlineGroup | addOutlineGroup(string $rows, ?{ collapsed?: bool } $options = null): Sheet |
addTable | addTable(string $range, TableOptions $options = null): Sheet |
addConditionalFormat | addConditionalFormat(string $range, Conditional $rule): Sheet |
addImage | addImage(string $cell, bytes $data, ?{ width?: float, height?: float, offsetX?: float, offsetY?: float } $options = null): Sheet |
addChart | addChart(string $cell, Chart $chart, ?{ width?: float, height?: float } $options = null): Sheet |
setPrintOptions | setPrintOptions(PrintOptions $options): Sheet |
protect | protect(?{ password?: string, allow?: array<string> } $options = null): Sheet |
