See Also

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

ProtectContents Property

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); }

Remarks

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


The default value of this property is false.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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.