SpreadsheetGear 2023
ProtectContents Property (IWorksheet)


SpreadsheetGear Namespace > IWorksheet Interface : ProtectContents Property
Gets or sets the property which specifies whether the contents of a worksheet are protected.
Syntax
'Declaration
 
Property ProtectContents As System.Boolean
'Usage
 
Dim instance As IWorksheet
Dim value As System.Boolean
 
instance.ProtectContents = value
 
value = instance.ProtectContents
System.bool ProtectContents {get; set;}
Remarks

This property must be set to true for IRange.Locked and IRange.FormulaHidden to have any affect.


The default value of this property is false.

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
Protect Method
Unprotect Method
Protection Property
ProtectDrawingObjects Property
ProtectScenarios Property
Locked Property
FormulaHidden Property
ProtectStructure Property
ProtectWindows Property
Protect Method
Unprotect Method