| SpreadsheetGear Namespace > IWorksheet Interface : ProtectContents Property | 
Gets or sets the property which specifies whether the contents of a worksheet are protected.
[Visual Basic]
Overridable Property ProtectContents As Boolean [C#]
virtual bool  ProtectContents {get; set;}[C++]
__property virtual bool  get_ProtectContents();
__property virtual void set_ProtectContents( 
   bool  value
);[C++/CLI]
virtual property bool  ProtectContents {
   bool  get();
   void set (bool  value);
}This property must be set to true for Locked and FormulaHidden to have any affect.
                The default value of this property is false.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IWorksheet Interface | IWorksheet Members | Protect Method | Unprotect Method | Locked Property | FormulaHidden Property | ProtectStructure Property | ProtectWindows Property
See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.
Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.
SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.