File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Excelize for Python is a Python port of Go [Excelize](https://github.com/xuri/ex
9
9
- PyPI: [ pypi.org/project/excelize] ( https://pypi.org/project/excelize )
10
10
- Licenses: [ BSD 3-Clause] ( https://opensource.org/licenses/BSD-3-Clause )
11
11
- Last version: [ v0.0.4] ( https://github.com/xuri/excelize-py/releases/latest )
12
- - Document update time: July 11 , 2025
12
+ - Document update time: July 21 , 2025
13
13
14
14
## Project mission
15
15
Original file line number Diff line number Diff line change 28
28
* [ Set worksheet properties] ( workbook.md#SetSheetProps )
29
29
* [ Get worksheet properties] ( workbook.md#GetSheetProps )
30
30
* [ Set worksheet view properties] ( workbook.md#SetSheetView )
31
+ * [ Get worksheet view properties] ( workbook.md#GetSheetView )
31
32
* [ Set worksheet page layout] ( workbook.md#SetPageLayout )
32
33
* [ Set worksheet page margins] ( workbook.md#SetPageMargins )
33
34
* [ Set workbook properties] ( workbook.md#SetWorkbookProps )
38
39
* [ Get application properties] ( workbook.md#GetAppProps )
39
40
* [ Set document properties] ( workbook.md#SetDocProps )
40
41
* [ Protect workbook] ( workbook.md#ProtectWorkbook )
42
+ * [ Unprotect workbook] ( workbook.md#UnprotectWorkbook )
41
43
* [ Worksheet] ( sheet.md )
42
44
* [ Set column visibility] ( sheet.md#SetColVisible )
43
45
* [ Set column width] ( sheet.md#SetColWidth )
Original file line number Diff line number Diff line change @@ -198,6 +198,21 @@ For example, hide `Sheet1`:
198
198
f.set_sheet_visible(" Sheet1" , False )
199
199
```
200
200
201
+ # # Get worksheet visible {#GetSheetVisible}
202
+
203
+ ```python
204
+ def get_sheet_visible(sheet: str ) -> bool
205
+ ```
206
+
207
+ Get visible state of the sheet by given sheet name. For example, get the visible state of `Sheet1` :
208
+
209
+ ```python
210
+ try :
211
+ visible = f.get_sheet_visible(" Sheet1" )
212
+ except RuntimeError as err:
213
+ print (err)
214
+ ```
215
+
201
216
# # Set worksheet properties {#SetSheetProps}
202
217
203
218
```python
@@ -827,3 +842,11 @@ class WorkbookProtectionOptions:
827
842
lock_structure: bool = False
828
843
lock_windows: bool = False
829
844
```
845
+
846
+ # # Unprotect workbook {#UnprotectWorkbook}
847
+
848
+ ```python
849
+ def unprotect_workbook(* password: str ) -> None
850
+ ```
851
+
852
+ Remove protection for workbook, specified the optional password parameter to remove workbook protection with password verification.
You can’t perform that action at this time.
0 commit comments