You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
workbook.CurrentWorksheet.Cells["A1"].SetCellLockedState(false,true);// Set the locking state of cell A1 (not locked but value is hidden when cell selected)
261
261
workbook.AddWorksheet("PWD-Protected");// Add a new worksheet
262
-
workbook.CurrentWorksheet.AddCell("This worksheet is password protected. The password is:",0,0);// Add cell A1
262
+
workbook.CurrentWorksheet.AddCell("This worksheet is password protected. The password is:",0,0);// Add cell A1
Cell.Rangerange=newCell.Range(newCell.Address(1,1),newCell.Address(3,3));// Create a cell range for the selection B2:D4
301
+
Cell.Rangerange=newCell.Range(newCell.Address(1,1),newCell.Address(3,3));// Create a cell range for the selection B2:D4
302
302
workbook.CurrentWorksheet.SetSelectedCells(range);// Set the selection to the range
303
303
workbook.AddWorksheet("Sheet2",true);// Create new worksheet with already existing name; The name will be changed to Sheet21 due to auto-sanitizing (appending of 1)
Copy file name to clipboardExpand all lines: Demo/Testing/Performance.cs
+39-39Lines changed: 39 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -28,45 +28,45 @@ public class Performance
28
28
/// <remarks>The data type is determined per column randomly. In case of strings, random ASCII characters from 1 to 256 characters are written into the cells</remarks>
/// <remarks>Excel, respectively its OADate function does not support a dates before 30th December 1899. Such dates will cause an exception in PicoXLSX</remarks>
0 commit comments