SpreadsheetGear 2023
Locked Property (IRange)

SpreadsheetGear Namespace > IRange Interface : Locked Property
Gets or sets the property which specifies whether cells should be locked.
Property Locked As System.Boolean
Dim instance As IRange
Dim value As System.Boolean
instance.Locked = value
value = instance.Locked
System.bool Locked {get; set;}
Locking cells will have no affect unless IWorksheet.ProtectContents is set to true.

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


IRange Interface
IRange Members
ProtectContents Property
Protect Method
Unprotect Method
Protection Property
LockedDefined Property
FormulaHidden Property