ExpertXls Excel Library for .NET
ExcelDocumentSecurity Class
Namespaces ► ExpertXls.ExcelLib ► ExcelDocumentSecurity
ExpertXls Excel Library for .NET
Manage the document security like workbook structure and windows protection, open/write password protection.
Declaration Syntax

C# | Visual Basic | Visual C++

    public class ExcelDocumentSecurity

    Public Class ExcelDocumentSecurity

    public ref class ExcelDocumentSecurity

Members

All Members | Methods | Properties
Public Protected | Instance Static | Declared Inherited

Icon | Member | Description
--- | --- | ---
| Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.)
| OpenWorkbookPassword | Gets or sets the password that must be supplied to open the workbook when opening a workbook or to password protect the workbook when saving a workbook. Password protection works only with Excel 2003 .xls format. To remove password protection for an existing workbook a valid open password must be supplied when opening the workbook and then the OpenPassword property must be set to null before saving the workbook to prevent protecting again the saved document.
| ProtectWorkbook(Boolean, Boolean) | Protects the workbook window and structure.
| ProtectWorkbook(Boolean, Boolean, String) | Protects the workbook window and structure and sets a password to unprotect the workbook.
| ToString()()() | Returns a String that represents the current Object. (Inherited from Object.)
| UnprotectWorkbook()()() | Removes protection from the workbook.
| UnprotectWorkbook(String) | Removes the protection from the workbook.
| WriteWorkbookPassword | Sets the write password of a workbook. This password is required in order to edit the workbook. Password protection works only with Excel 2003 .xls format.

Inheritance Hierarchy

Object
| ExcelDocumentSecurity

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