如何在 Java 中使用 Apache Poi 在 Excel 中取消隐藏隐藏行? [英] How to Un-Hide a hidden row in Excel using Apache Poi in Java?
本文介绍了如何在 Java 中使用 Apache Poi 在 Excel 中取消隐藏隐藏行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有:
import org.apache.poi.ss.usermodel.Row;
if ((currentRow = sheet.getRow(currentDataRow)) == null) {
currentRow = sheet.createRow(currentDataRow); // Creates a new row.
}
// How to un-hide currentRow ?
currentRow
是隐藏的,所以要使用这个 currentRow
对象取消隐藏该行?
currentRow
is hidden, so to un-hide this row using this currentRow
object?
请帮忙.. !!
推荐答案
看起来是 getRowStyle().setHidden():
currentRow.getRowStyle().setHidden(false);
这篇关于如何在 Java 中使用 Apache Poi 在 Excel 中取消隐藏隐藏行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文