1

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);
4

1 回答 1

1

看起来这在当前版本中是不可能的。但是,在 GitHub 上有一个提出该功能的拉取请求。

于 2020-01-03T22:30:33.047 回答