SpreadsheetGear Namespace > IRange Interface : Locked Property (IRange) |
Gets or sets the property which specifies whether cells should be locked.
[Visual Basic]
Overridable Property Locked As Boolean
[C#]
virtual bool Locked {get; set;}
[C++]
__property virtual bool get_Locked();
__property virtual void set_Locked(
bool value
);
[C++/CLI]
virtual property bool Locked {
bool get();
void set (bool value);
}
Locking cells will have no affect unless ProtectContents is set to true.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IRange Interface | IRange Members | ProtectContents Property | LockedDefined Property | FormulaHidden 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.