Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / SheetActionsCommand Class / ProtectSheet Method / ProtectSheet(IWorksheet,WorksheetLocks,String) Method


In This Topic
    ProtectSheet(IWorksheet,WorksheetLocks,String) Method
    In This Topic
    Protects a sheet.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ProtectSheet( _
       ByVal worksheet As IWorksheet, _
       ByVal locks As WorksheetLocks, _
       Optional ByVal password As String _
    ) As SheetActionsCommand
    'Usage
     
    
    Dim worksheet As IWorksheet
    Dim locks As WorksheetLocks
    Dim password As String
    Dim value As SheetActionsCommand
     
    value = SheetActionsCommand.ProtectSheet(worksheet, locks, password)

    Parameters

    worksheet
    locks
    password
    See Also