.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Workbook.Unprotect(String) Method

Removes protection from a workbook.

You need an active license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this method in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v20.1.dll

Declaration

public bool Unprotect(
    string password
)
Public Function Unprotect(
    password As String
) As Boolean

Parameters

Name Type Description
password String

A string that specifies the password with which the workbook is protected.

Returns

Type Description
Boolean

true if protection is successfully removed; otherwise, false.

Remarks

If the workbook is not protected, the Unprotect method raises an exception. Use the Workbook.IsProtected property to check whether the workbook is already protected.

Implements

See Also