共用方式為


WebPartZone.LockLayout property

NOTE: This API is now obsolete.

取得或設定是否在區域內的 Web 組件可以新增、 刪除、 調整大小或移動。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("Use AllowLayoutChange instead.")> _
Public Property LockLayout As Boolean
    Get
    Set
'用途
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 用來指示是否在區域內的 Web 組件可以新增、 刪除、 調整大小或移動。

備註

LockLayout屬性可以設定為true ,表示仍可以變更 Web 組件上的非版面配置屬性。

請參閱

參照

WebPartZone class

WebPartZone members

Microsoft.SharePoint.WebPartPages namespace