POI的XWPFTable的方法总结

1、  void   addNewCol();

        为该表中的每一行添加一个新列

2、  void  addRow(XWPFTableRow row);

        向表中添加新行

3、  boolean  addRow(XWPFTableRow row, int pos);

        在pos位置向表添加新行

4、  XWPFTableRow  createRow();

        创建一个新的XWPFTableRow对象,该对象的单元格数与当时定义的列数相同

5、  java.lang.String   getBottomBorderColor();

        获取底部边框颜色

6、  int    getBottomBorderSize();

        获取底部边框大小

7、  int  getBottomBorderSpace();

        获取底部边框间距

8、  XWPFTable.XWPFBorderType  getBottomBorderType();

        获取底部边框类型

9、  int   getCellMarginBottom();

10、  int  getCellMarginBottom();

11、  int  getCellMarginLeft();

12、  int  getCellMarginRight();

13、  int  getCellMarginTop();

14、  int  getColBandSize();

15、  BodyElementType  getElementType()

        返回BodyElement表的类型

16、  java.lang.String  getInsideHBorderColor()

        获取水平边框颜色

17、  int  getInsideHBorderSize();

        获取水平边框大小

18、  int  getInsideHBorderSpace();

        获取水平边框间距

19、  XWPFTable.XWPFBorderType  getInsideHBorderType()

        获取水平边框类型

20、  java.lang.String  getInsideVBorderColor()

        获取垂直边框颜色

21、  int  getInsideVBorderSize();

        获取垂直边框大小

22、  int  getInsideVBorderSpace();

        获取垂直边框间距

23、  XWPFTable.XWPFBorderType  getInsideVBorderType()

        获取垂直边框类型

24、  java.lang.String  getLeftBorderColor()

        获取左边框颜色

        

 

posted @ 2019-03-19 15:14  Misster  阅读(19820)  评论(0编辑  收藏  举报