Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Charts Namespace / IChart Interface / Protect Method
A GrapeCity.Spreadsheet.ChartLocks value indicates which data will be protected.
A string that specifies a case-sensitive password for the sheet.


In This Topic
    Protect Method (IChart)
    In This Topic
    Protects a chart so that it cannot be modified.
    Syntax
    'Declaration
     
    
    Function Protect( _
       ByVal locks As ChartLocks, _
       ByVal password As String _
    ) As Boolean
    'Usage
     
    
    Dim instance As IChart
    Dim locks As ChartLocks
    Dim password As String
    Dim value As Boolean
     
    value = instance.Protect(locks, password)

    Parameters

    locks
    A GrapeCity.Spreadsheet.ChartLocks value indicates which data will be protected.
    password
    A string that specifies a case-sensitive password for the sheet.

    Return Value

    true if the sheet is protected successful, false otherwise.
    See Also