public void SetSheetProtection(XlsxSheetProtection sheetProtection) { if (sheetProtection.Password.Length < MinSheetProtectionPasswordLength || sheetProtection.Password.Length > MaxSheetProtectionPasswordLength) { throw new ArgumentException("Invalid password length"); } _sheetProtection = sheetProtection; }
public XlsxWriter SetSheetProtection(XlsxSheetProtection sheetProtection) { return(DoOnWorksheet(() => _currentWorksheet.SetSheetProtection(sheetProtection))); }