File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,28 @@ File('Output.xlsx').writeAsBytes(bytes);
116
116
117
117
{% endhighlight %}
118
118
119
+ ## Show or Hide Worksheet
120
+
121
+ The following code snippet shows how to hide the worksheet using ** visibility** property.
122
+
123
+ {% highlight dart %}
124
+
125
+ //Create a new Excel Document.
126
+ final Workbook workbook = Workbook(10);
127
+
128
+ //Accessing sheet via index.
129
+ final Worksheet sheet = workbook.worksheets[ 2] ;
130
+ sheet.getRangeByName('A1: M10 ').setText('Visibility');
131
+
132
+ //set the visibility for the worksheet.
133
+ sheet.visibility = WorksheetVisibility.hidden;
134
+
135
+ final List<int > bytes = workbook.saveAsStream();
136
+ File('Output.xlsx').writeAsBytes(bytes);
137
+ workbook.dispose();
138
+
139
+ {% endhighlight %}
140
+
119
141
## Adjust Row Height and Column Width
120
142
121
143
** Resize a range of rows or columns**
You can’t perform that action at this time.
0 commit comments