[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.ISheet.Protect

Protect Method

Protect(string)

Protects a sheet so that it cannot be modified.

Declaration
bool Protect(string password = null)
Function Protect(Optional password As String = Nothing) As Boolean
Parameters
Type Name Description
string password

A string that specifies a case-sensitive password for the sheet.

Returns
Type Description
bool

true if the sheet is protected successful, false otherwise.

Remarks

Note that support for WorksheetLocks is limited to reading and writing the OpenXML file. All options of WorksheetLocks have same effect in runtime.