Пример #1
0
 public void SetSheetProtection(XlsxSheetProtection sheetProtection)
 {
     if (sheetProtection.Password.Length < MinSheetProtectionPasswordLength || sheetProtection.Password.Length > MaxSheetProtectionPasswordLength)
     {
         throw new ArgumentException("Invalid password length");
     }
     _sheetProtection = sheetProtection;
 }
Пример #2
0
 public XlsxWriter SetSheetProtection(XlsxSheetProtection sheetProtection)
 {
     return(DoOnWorksheet(() => _currentWorksheet.SetSheetProtection(sheetProtection)));
 }