How to set Paragraph Attributes for a Row / Cell in Google Docs?

心不动则不痛 提交于 2019-12-11 17:44:32

问题


I can insert a table in a Google Document. I manage to change some of the Attributes of each row (like font size, bold, padding).

However, paragraph Attributes I get stuck at. Like LINE_SPACING, SPACING_AFTER, SPACING_BEFORE.

How do I set the Attributes of a table row and table cells?

And while I'm at it :-), how to put a bullet list in a cell?

Much obliged.


回答1:


==== update ====

Found the answer

tabel.getRow(0).getCell(1).getChild(0).asParagraph().setAttributes(something)


来源:https://stackoverflow.com/questions/21497971/how-to-set-paragraph-attributes-for-a-row-cell-in-google-docs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!