gpt4 book ai didi

java - 如何在 Java 中使用 Apache Poi 取消隐藏 Excel 中的隐藏行?

转载 作者:行者123 更新时间:2023-11-30 06:34:28 59 4
gpt4 key购买 nike

我有:

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 对象取消隐藏该行吗?

请帮忙..!!

最佳答案

看起来是getRowStyle().setHidden() :

currentRow.getRowStyle().setHidden(false);

有关 getRowStyle 的更多信息.

关于java - 如何在 Java 中使用 Apache Poi 取消隐藏 Excel 中的隐藏行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6923153/

59 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com