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()

        獲取左邊框顏色

        

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM