OLEObject.Locked Property
Gets or sets a value that indicates whether the OLEObject is locked.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
Public Property Locked As Boolean
Get
Set
'Usage
Dim instance As OLEObject
Dim value As Boolean
value = instance.Locked
instance.Locked = value
public bool Locked { get; set; }
Property Value
Type: System.Boolean
true if the OLEObject is locked; false if the OLEObject can be modified when the sheet is protected.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.