Apache POI : Difference between row.getLastCellNum and row.getNoOfPhysicalCell

无人久伴 提交于 2019-12-25 07:10:22

问题


What is the difference between row.getLastCellNum() and row.getNoOfPhysicalCell() in POI HSSFRow ? Or are they same ?


回答1:


getLastCellNum()

Gets the index of the last cell contained in this row PLUS ONE

getPhysicalNumberOfCells()

gets the number of defined cells (NOT number of cells in the actual row!). That is to say if only columns 0,4,5 have values then there would be 3.



来源:https://stackoverflow.com/questions/18201381/apache-poi-difference-between-row-getlastcellnum-and-row-getnoofphysicalcell

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