Skip to content

Commit c876add

Browse files
author
Olivier Chédru
authored
Merge pull request #262 from meiMingle/feattture-update_readme
Update README.md,add description of hide sheet/row/colum
2 parents d756a0d + b7ce738 commit c876add

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,24 @@ ws.repeatRows(2); // keep the third row on each page when printing.
200200
ws.repeatCols(0, 2); // repeat first three columns (A to C) on each page when printing.
201201
ws.repeatCols(0); // repeat only first column (A) on each page for the print setup.
202202
```
203+
Hide sheet.
204+
205+
```
206+
ws.setVisibilityState(VisibilityState.HIDDEN);
207+
```
208+
209+
Hide rows or colums
210+
211+
```java
212+
ws.hideRow(2);
213+
ws.hideColumn(2);
214+
IntStream.rangeClosed(3,5).forEach(ws::hideRow);
215+
IntStream.rangeClosed(3,5).forEach(ws::hideColumn);
216+
```
217+
203218
Set header and footer content.\
204219
To set page enumeration in the top right:
220+
205221
```java
206222
ws.header("page 1 of ?", Position.RIGHT);
207223
```

0 commit comments

Comments
 (0)