[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.WriteProtection

WriteProtection Property

WriteProtection

Returns the workbook write protection options.

Declaration
WriteProtection WriteProtection { get; }
ReadOnly Property WriteProtection As WriteProtection
Examples
WriteProtection protection = workbook.WriteProtection;
protection.WriteReservedBy = "User";
protection.ReadOnlyRecommended = true;
// Get the password from user input by using getPasswordFromSecureSource().
string password = getPasswordFromSecureSource();
protection.WritePassword = password;
bool writeReserved = protection.WriteReserved;
bool passwordMatches = protection.ValidatePassword(password);