Add support for setting column width by range

This commit is contained in:
Alexander Hofstede committed 2019-12-13 12:38:00 +01:00
1 parent 82170a058b
commit 80487f1ac1
4 files changed
+54 -6

No files matched your search

@@ -167,6 +167,17 @@ abstract class WriterMultiSheetsAbstract extends WriterAbstract
$this->workbookManager->setColumnWidth($width, ...$columns);
}
/**
* @param float $width The width to set
* @param int $start First column index of the range
* @param int $end Last column index of the range
* @throws WriterNotOpenedException
*/
public function setColumnWidthForRange(float $width, int $start, int $end) {
$this->throwIfWorkbookIsNotAvailable();
$this->workbookManager->setColumnWidthForRange($width, $start, $end);
}
/**
* Checks if the workbook has been created. Throws an exception if not created yet.
*