Share via


WebPartZone.LockLayout Property

NOTE: This API is now obsolete.

Gets or sets whether Web Parts within the zone can be added, deleted, resized, or moved.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use AllowLayoutChange instead.")> _
Public Property LockLayout As Boolean
    Get
    Set
'Usage
Dim instance As WebPartZone
Dim value As Boolean

value = instance.LockLayout

instance.LockLayout = value
[ObsoleteAttribute("Use AllowLayoutChange instead.")]
public bool LockLayout { get; set; }

Property Value

Type: System.Boolean
Boolean Used to indicate whether Web Parts within the zone can be added, deleted, resized, or moved.

Remarks

The LockLayout property can be set to true to indicate that non-layout properties on the Web Parts can still be changed.

See Also

Reference

WebPartZone Class

WebPartZone Members

Microsoft.SharePoint.WebPartPages Namespace