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

See Also

Reference

OLEObject Class

OLEObject Members

Microsoft.Office.Tools.Excel Namespace