Class WriteProtection

WriteProtection class

Specifies write protection settings for a workbook.

public class WriteProtection

Constructors

NameDescription
WriteProtection()The default constructor.

Properties

NameDescription
Author { get; set; }Gets and sets the author.
IsWriteProtected { get; }Indicates whether this workbook is write protected.
Password { set; }Sets the protected password to modify the file.
RecommendReadOnly { get; set; }Indicates if the Read Only Recommended option is selected.

Methods

NameDescription
ValidatePassword(string)Returns true if the specified password is the same as the write-protection password the file was protected with.

See Also