Text direction in apache poi

青春壹個敷衍的年華 提交于 2019-12-12 02:07:30

问题


How to make the text direction in Apache poi as Vertical. I tried Vertical alignment. I am not able to get the desired results. I don't want to rotate the text. Something like :

T
E
X
T

回答1:


You have to create a cellStyle, where You have a method setRotation(short rotation). Subsequently apply the cellstyle to Your cell.

docs, for setRotation https://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/XSSFCellStyle.html#setRotation(short)



来源:https://stackoverflow.com/questions/24775688/text-direction-in-apache-poi

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