Spread for ASP.NET 12 Product Documentation
SetProtect Method


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : SetProtect Method
The boolean value that specifies whether to protect or unprotect spread.
The password to protect or unprotect spread.
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

Reference

FpSpread Class
FpSpread Members