Apache的POI:row.getLastCellNum和row.getNoOfPhysicalCell的区别 [英] Apache POI : Difference between row.getLastCellNum and row.getNoOfPhysicalCell

查看:864
本文介绍了Apache的POI:row.getLastCellNum和row.getNoOfPhysicalCell的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么在POI HSSFRow row.getLastCellNum() row.getNoOfPhysicalCell()之间的区别?或者是他们相同的?

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

推荐答案

getLastCellNum()

获取包含此行的最后一个单元的索引PLUS ONE

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

<一个href=\"http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFRow.html#getPhysicalNumberOfCells\"相对=nofollow> getPhysicalNumberOfCells()

获取定义的细胞数(不是数的实际行中的单元格!)。也就是说,如果只列0,4,5有值,那么将有3

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.

这篇关于Apache的POI:row.getLastCellNum和row.getNoOfPhysicalCell的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆