我需要设置我的表格,希望看起来粗体,那么如何设置粗细边框?
我知道如何更改边框borders.addNewBottom().setVal(STBorder.SINGLE);
但是如何改变边框的粗细呢?
编辑:我已经做到了。如下所示:
table3.getCTTbl().getTblPr().getTblBorders().getTop().setSz(BigInteger.valueOf(11));
table3.getCTTbl().getTblPr().getTblBorders().getLeft().setSz(BigInteger.valueOf(12));
table3.getCTTbl().getTblPr().getTblBorders().getRight().setSz(BigInteger.valueOf(12));
table3.getCTTbl().getTblPr().getTblBorders().getBottom().setSz(BigInteger.valueOf(12));
table3.getCTTbl().getTblPr().getTblBorders().getInsideH().setSz(BigInteger.valueOf(12));
table3.getCTTbl().getTblPr().getTblBorders().getInsideV().setSz(BigInteger.valueOf(12));顺便说一句,我该从哪里知道setSz是什么意思呢?
发布于 2018-01-03 21:18:46
你可以试一试
borders.addNewBottom().setVal(STBorder.THICK);STBorder类同时包含线条边框和图片边框。从inset到inset的所有东西都是线条边框,并且可以在任何可以使用边框的地方使用。从苹果开始,所有东西都是艺术边框,只能用于页面边框。
https://stackoverflow.com/questions/48061930
复制相似问题