Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / SetProtect Method
The boolean value that specifies whether to protect or unprotect spread.
The password to protect or unprotect spread.


In This Topic
    SetProtect Method
    In This Topic
    Changes the protect structure setting with the password parameter.
    Syntax
    'Declaration
     
    
    Public Function SetProtect( _
       ByVal protect As Boolean, _
       ByVal password As String _
    ) As Boolean
    'Usage
     
    
    Dim instance As FpSpread
    Dim protect As Boolean
    Dim password As String
    Dim value As Boolean
     
    value = instance.SetProtect(protect, password)
    public bool SetProtect( 
       bool protect,
       string password
    )

    Parameters

    protect
    The boolean value that specifies whether to protect or unprotect spread.
    password
    The password to protect or unprotect spread.

    Return Value

    True, if successful; otherwise, false.
    See Also