增加/减小盒子喷嘴的单元格高度和宽度?

huangapple go评论83阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年1月3日 22:06:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/59579960.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定