[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.WriteProtection

WriteProtection Class

Provides access to the workbook write protection options.

Inheritance
WriteProtection
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class WriteProtection
Public Class WriteProtection

Properties

Name Description
ReadOnlyRecommended

Indicates if the Read Only Recommended option is selected.

WritePassword

Sets the protected password to modify the file.

WriteReserved

Indicates whether this workbook is write protected.

WriteReservedBy

Gets and sets the name of the user who currently has write permission for the workbook.
If you don't explicitly specify this property, the value will come from the IWorkbook.Author, and if the IWorkbook.Author is empty string or null, the value will be "Document Solution for Excel".

Methods

Name Description
ValidatePassword(string)

Returns true if the specified password is the same as the write-protection password the file was protected with.