Partager via


OLEObjects.Locked Property

True if the object is locked; False if the object can be modified when the sheet is protected.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Locked As Boolean
    Get
    Set
'Usage
Dim instance As OLEObjects
Dim value As Boolean

value = instance.Locked

instance.Locked = value
bool Locked { get; set; }

Property Value

Type: System.Boolean

See Also

Reference

OLEObjects Interface

OLEObjects Members

Microsoft.Office.Interop.Excel Namespace