DisplayFormat.Locked Property
Gets a value that indicates if the associated Range object is locked as it is displayed in the current user interface.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property Locked As Object
Get
'Usage
Dim instance As DisplayFormat
Dim value As Object
value = instance.Locked
Object Locked { get; }
Property Value
Type: System.Object
Indicates if the associated Range object is locked as it is displayed in the current user interface.
Remarks
Read-only.
Returns true if the range is locked, false if the range can be modified when the sheet is protected, or a null reference (Nothing in Visual Basic) if the range contains both locked and unlocked cells.