【发布时间】:2020-04-22 02:23:24
【问题描述】:
Box Spout 单元格高度宽度增加/减少??
基本上是想把单元格的宽度和高度增加。阅读完整的 Box spout 文档。但无法找到解决方案。
文档链接:http://opensource.box.com/spout/docs/#styling-cells
在我的代码下面:
$style2 = (new StyleBuilder())
->setFontSize(12)
->setFontColor(Color::BLACK)
->setShouldWrapText()
->setCellAlignment(CellAlignment::CENTER)
->setBackgroundColor(Color::LIGHT_GREEN)
->setBorder($border)
->setFormat(200)
->build();
$rowFromValues = WriterEntityFactory::createRowFromArray($value, $style);
$writer->addRow($rowFromValues);
【问题讨论】: