英文:
Box Spout cell height width increase/decrease?
问题
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);
希望这有所帮助。
英文:
Box Spout cell height width increase/decrease ??
basically want to cell width and height increase. read full Box spout documentation. but unable to find solution.
Doc Link : http://opensource.box.com/spout/docs/#styling-cells
Below my code:
$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);
答案1
得分: 1
这在当前版本中似乎是不可能的。然而,在 GitHub 上有一个提案功能的拉取请求。
英文:
It looks like this is not possible with the current version. However, there is a pull request open on GitHub proposing that functionality.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论