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
Get
Set
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
- 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.