[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Charts.IChart.Protect

Protect Method

Protect(ChartLocks, string)

Protects a chart so that it cannot be modified.

Declaration
bool Protect(ChartLocks locks, string password)
Function Protect(locks As ChartLocks, password As String) As Boolean
Parameters
Type Name Description
ChartLocks locks

A ChartLocks value indicates which data will be protected.

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.