HSSFClientAnchor 说明

 

  1. public HSSFClientAnchor(int dx1,int dy1,int dx2,int dy2,short col1,int row1,short col2,
  2. int row2);Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.
  3. Parameters:
  4. dx1 - the x coordinate within the first cell.
  5. dy1 - the y coordinate within the first cell.
  6. dx2 - the x coordinate within the second cell.
  7. dy2 - the y coordinate within the second cell.
dx2:第二个单元格的开始X坐标
dy2:第二个单元格的开始y坐标
 
  1. col1 - the column (0 based); of the first cell.
  2. row1 - the row (0 based); of the first cell.
  3. col2 - the column (0 based); of the second cell.
  4. row2 - the row (0 based); of the second cell.
  5. col1 图片的左上角放在第几个列cell, 
    row1 图片的左上角放在第几个行cell, 

    col2 图片的右下角放在第几个列cell, 
    row2 图片的右下角放在第几个行cell,
  6. 列宽 
    sheet.setColumnWidth((short)column,(short)width); 
    行高 
    row.setHeight((short)height);
  7. 添加多个图片时:多个pic应该share同一个DrawingPatriarch在同一个sheet里面。

猜你喜欢

转载自fireinwind.iteye.com/blog/2170307
今日推荐