SpreadsheetGear 2023
Protect Method (IChartSheet)


SpreadsheetGear Namespace > IChartSheet Interface : Protect Method
Enables protection for this chart sheet with the optional password and protect* options.
Syntax
'Declaration
 
Sub Protect( _
   Optional ByVal password As System.String, _
   Optional ByVal protectDrawingObjects As System.Boolean, _
   Optional ByVal protectContents As System.Boolean, _
   Optional ByVal userInterfaceOnly As System.Boolean _
) 
'Usage
 
Dim instance As IChartSheet
Dim password As System.String
Dim protectDrawingObjects As System.Boolean
Dim protectContents As System.Boolean
Dim userInterfaceOnly As System.Boolean
 
instance.Protect(password, protectDrawingObjects, protectContents, userInterfaceOnly)
void Protect( 
   System.string password,
   System.bool protectDrawingObjects,
   System.bool protectContents,
   System.bool userInterfaceOnly
)

Parameters

password
protectDrawingObjects
protectContents
userInterfaceOnly
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

IChartSheet Interface
IChartSheet Members
Unprotect Method
ProtectContents Property
ProtectDrawingObjects Property
ProtectionMode Property