コード例 #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)));
 }