Spread WPF 18
GrapeCity.Spreadsheet Namespace / ISheet Interface / Protect Method
A string that specifies a case-sensitive password for the sheet.


In This Topic
    Protect Method (ISheet)
    In This Topic
    Protects a sheet so that it cannot be modified.
    Syntax
    'Declaration
     
    Function Protect( _
       Optional ByVal password As String _
    ) As Boolean
    'Usage
     
    Dim instance As ISheet
    Dim password As String
    Dim value As Boolean
     
    value = instance.Protect(password)
    bool Protect( 
       string password
    )

    Parameters

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

    Return Value

    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.
    See Also