我正在尝试使用 apache poi 解析 xls 文件。是否可以检查列是否隐藏。如何获取特定列的宽度。
示例:根据帖子here https://stackoverflow.com/questions/10529909/detecting-hidden-cells-in-excel-using-apache-poi它检查该行是否隐藏。
同样,我想检查列的宽度(或检查列是否隐藏)
you can 将列设置为隐藏/取消隐藏通过使用
sheet.setColumnHidden(int columnIndex, boolean hidden);
e.g.
sheet.setColumnHidden(2, true); // this will hide the column index 2
sheet.setColumnHidden(2, false); // this will unhide the column index 2
and the 列是否隐藏可以使用检查
sheet.isColumnHidden(int columnIndex);
e.g.
sheet.isColumnHidden(2); //this will check the 2nd column index whether it is hidden or not
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)