ExpertXls Excel Library for .NET
ProtectWorksheet Method (password)
Namespaces ► ExpertXls.ExcelLib ► ExcelWorksheetSecurity ► ProtectWorksheet(String)
ExpertXls Excel Library for .NET
Protect the worksheet using the default protection options and set a password required to unprotect the worksheet.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void ProtectWorksheet(
    	string password
    )

    Public Sub ProtectWorksheet ( _
    	password As String _
    )

    public:
    void ProtectWorksheet(
    	String^ password
    )

Parameters

password (String)
  The password.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)