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

Yug*_*dle 2 java excel apache-poi

我有:

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 ?
Run Code Online (Sandbox Code Playgroud)

currentRow是隐藏的,那么要使用该对象取消隐藏该行currentRow吗?

请帮忙.. !!

Ove*_*ous 5

看起来像getRowStyle().setHidden()

currentRow.getRowStyle().setHidden(false);
Run Code Online (Sandbox Code Playgroud)

有关getRowStyle的更多信息。