gpt4 book ai didi

actionscript-3 - 弹性 : Purepdf : Aligning paragraph text into the middle of a SimpleCell?

转载 作者:行者123 更新时间:2023-12-04 05:53:41 27 4
gpt4 key购买 nike

我试过这段代码,但由于某种原因它不起作用..

var table : SimpleTable     = new SimpleTable();
table.widthPercentage = 100;
table.borderWidth = 1;

var row : SimpleCell = new SimpleCell( SimpleCell.ROW );
row.border = 1;
row.borderColor = RGBColor.fromARGB( 0x555555 );
row.borderWidth = 1;
row.verticalAlignment = Element.ALIGN_MIDDLE;

var cell1 : SimpleCell = new SimpleCell( SimpleCell.CELL );
cell1.widthpercentage = 25;
cell1.verticalAlignment = Element.ALIGN_MIDDLE;

var p : Paragraph = new Paragraph( 'test', PurePDFGenerator.pdf.cyrillicFont );
p.alignment = Element.ALIGN_MIDDLE;

cell1.add( p );


row.add( cell1 );
table.add( row );
  • 如何将段落文本对齐到 SimpleCell 的中间?
  • 最佳答案

    您是否尝试过在单元格级别进行水平对齐?据我所知,它应该可以从文档中使用。另外,您不将段落添加到单元格中吗?

    关于actionscript-3 - 弹性 : Purepdf : Aligning paragraph text into the middle of a SimpleCell?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9774956/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com