Get row / column options
Extension version
1.6.0or later;Build with
--enable-reader;
Read sizing, hidden state and outline metadata for a single row / column, plus the worksheet defaults.
Methods
getRowOptions(int $row): ?array
getColumnOptions(string $column): ?array
getDefaultRowHeight(): ?float
getDefaultColumnWidth(): ?floatint $row
Row index, 0-based.
string $column
Column letter, e.g.
"A","AB".
Return value
getRowOptions() returns:
height(float|null) — row height in points;nullwhen not customised;hidden(bool) — whether the row is hidden;outline_level(int) — outline level;collapsed(bool) — whether the outline is collapsed;custom_height(bool) — whether a custom height was set.
getColumnOptions() returns:
width(float|null) — column width in characters;hidden(bool) — whether the column is hidden;outline_level(int) — outline level;collapsed(bool) — whether the outline is collapsed.
getDefaultRowHeight() / getDefaultColumnWidth() return the values declared in <sheetFormatPr>, or null if none are present.
Example
Last updated