SpreadsheetGear 2023
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;}
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
Protect Method
Unprotect Method
Protection Property
LockedDefined Property
FormulaHidden Property