public class Worksheet extends Object:
Worksheet contained in an XLSX workbook.
Cells are addressed with Excel A1 references. The implementation stores only explicitly written cells, which keeps simple exports fast and predictable.
@example `klyn import klyn.io.xlsx
workbook = Workbook("report.xlsx") sheet = workbook.addWorksheet("Data") sheet.write("A1", "Name") workbook.close()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | maxColumnmaxColumn as Int: |
Maximum one-based column index containing data. |
| public readonly property | maxRowmaxRow as Int: |
Maximum one-based row index containing data. |
| public readonly property | namename as String: |
Worksheet name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Worksheet | Creates a worksheet. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | hasCell | Returns true when a cell exists. |
| public | insertChart | Inserts a chart anchored at a cell. |
| public | read | Reads one cell value. |
| public | readString | Reads one cell value as text. |
| public | rows | Returns a dense row matrix up to the largest written cell. |
| public | setColumn | Sets the width of a column range. |
| public | setColumn | Sets the width of a column range. |
| public | write | Writes one cell value. |
| public | writeColumn | Writes floating-point values vertically from a starting cell. |
| public | writeColumn | Writes values vertically from a starting cell. |
| public | writeColumn | Writes object values vertically from a starting cell. |
| public | writeColumn | Writes text values vertically from a starting cell. |