HSSFClientAnchor(int dx1,int dy1,int dx2,int dy2,short col1,int row1,short col2, int row2)

 
  1. public HSSFClientAnchor(int dx1,
  2. int dy1,
  3. int dx2,
  4. int dy2,
  5. short col1,
  6. int row1,
  7. short col2,
  8. int row2);Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.
  9. Parameters:
  10. dx1 - the x coordinate within the first cell.
  11. dy1 - the y coordinate within the first cell.
  12. dx2 - the x coordinate within the second cell.
  13. dy2 - the y coordinate within the second cell.
  14. col1 - the column (0 based); of the first cell.
  15. row1 - the row (0 based); of the first cell.
  16. col2 - the column (0 based); of the second cell.
  17. row2 - the row (0 based); of the second cell.
  18. col1 图片的左上角放在第几个列cell, 
    row1 图片的左上角放在第几个行cell, 

    col2 图片的右下角放在第几个列cell, 
    row2 图片的右下角放在第几个行cell,
  19. 列宽 
    sheet.setColumnWidth((short)column,(short)width); 
    行高 
    row.setHeight((short)height);
  20. 添加多个图片时:多个pic应该share同一个DrawingPatriarch在同一个sheet里面。
[@more@]
posted @ 2015-09-02 10:37  kobe工作室  阅读(573)  评论(0编辑  收藏  举报