SpreadsheetGear 2012
ProtectContents Property (IWorksheet)






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;}
read-write property ProtectContents: System.Boolean; 
function get,set ProtectContents : System.boolean
__property System.bool get_ProtectContents();
__property void set_ProtectContents( 
   System.bool value
);
property System.bool ProtectContents {
   System.bool get();
   void set (    System.bool value);
}
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
Locked Property
FormulaHidden Property
ProtectStructure Property
ProtectWindows Property
Protect Method
Unprotect Method

Send Feedback