NamedRange.Locked Property (2007 System)
Gets or sets a value that indicates whether the NamedRange control is locked.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property Locked As Object
'Usage
Dim instance As NamedRange
Dim value As Object
value = instance.Locked
instance.Locked = value
[BrowsableAttribute(false)]
public Object Locked { get; set; }
[BrowsableAttribute(false)]
public:
property Object^ Locked {
Object^ get ();
void set (Object^ value);
}
public function get Locked () : Object
public function set Locked (value : Object)
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.