Syncfusion.XlsIO.Base
Example 


Password to unprotect.

Unprotect Method (ITabSheet)

Removes protection from a sheet. This method has no effect if the sheet or workbook isn't protected.
Syntax
'Declaration
 
Sub Unprotect( _
   ByVal password As String _
) 
'Usage
 
Dim instance As ITabSheet
Dim password As String
 
instance.Unprotect(password)
void Unprotect( 
   string password
)

Parameters

password
Password to unprotect.
Example
Following code illustrates how to remove the protection from the sheet.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
ITabSheet sheet = workbook.Worksheets[0];
            
// Unprotect the sheet 
sheet.Unprotect("Syncfusion");
            
workbook.SaveAs("UnProtect.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also