Partager via


NamedRange.Locked Property

Gets or sets a value that indicates whether the NamedRange control is locked.

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

Syntax

'Declaration
Property Locked As Object
Object Locked { get; set; }

Property Value

Type: System.Object
true if the NamedRange control is locked; false if the NamedRange control can be modified when the sheet is protected; nulla null reference (Nothing in Visual Basic) if the NamedRange control contains both locked and unlocked cells.

.NET Framework Security

See Also

Reference

NamedRange Interface

Microsoft.Office.Tools.Excel Namespace