SpreadsheetGear 2012
Protect Method (IWorksheet)






The password which will be required to unprotect the worksheet.
Enables protection for this worksheet with the specified password.
Syntax
'Declaration
 
Sub Protect( _
   ByVal password As System.String _
) 
'Usage
 
Dim instance As IWorksheet
Dim password As System.String
 
instance.Protect(password)
void Protect( 
   System.string password
)
procedure Protect( 
    password: System.String
); 
function Protect( 
   password : System.String
);
void Protect( 
   System.string* password
) 
void Protect( 
   System.String^ password
) 

Parameters

password
The password which will be required to unprotect the worksheet.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IWorksheet Interface
IWorksheet Members
Unprotect Method
ProtectContents Property
Locked Property
FormulaHidden Property
Protect Method
Unprotect Method
ProtectStructure Property
ProtectWindows Property

Send Feedback