ExpertXls Excel Library for .NET
ProtectWorkbook Method (protectWindow, protectStructure)
Namespaces ► ExpertXls.ExcelLib ► ExcelDocumentSecurity ► ProtectWorkbook(Boolean, Boolean)
ExpertXls Excel Library for .NET
Protects the workbook window and structure.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void ProtectWorkbook(
    	bool protectWindow,
    	bool protectStructure
    )

    Public Sub ProtectWorkbook ( _
    	protectWindow As Boolean, _
    	protectStructure As Boolean _
    )

    public:
    void ProtectWorkbook(
    	bool protectWindow,
    	bool protectStructure
    )

Parameters

protectWindow (Boolean)
  When this flag is true the workbook window will be protected.

protectStructure (Boolean)
  When this flag is true the workbook structure is protected.

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