SpreadsheetGear 2017
Locked Property (IRange)






SpreadsheetGear Namespace > IRange Interface : Locked Property
Gets or sets the property which specifies whether cells should be locked.
Syntax
'Declaration
 
Property Locked As System.Boolean
'Usage
 
Dim instance As IRange
Dim value As System.Boolean
 
instance.Locked = value
 
value = instance.Locked
System.bool Locked {get; set;}
read-write property Locked: System.Boolean; 
function get,set Locked : System.boolean
__property System.bool get_Locked();
__property void set_Locked( 
   System.bool value
);
property System.bool Locked {
   System.bool get();
   void set (    System.bool value);
}
Remarks
Locking cells will have no affect unless IWorksheet.ProtectContents is set to true.
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

IRange Interface
IRange Members
ProtectContents Property
LockedDefined Property
FormulaHidden Property