WebPart.AllowHide 属性

获取或设置一个值,指示是否允许最终用户隐藏 web 部件控件。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<WebPartStorageAttribute(Storage.Shared)> _
Public Overrides Property AllowHide As Boolean
    Get
    Set
用法
Dim instance As WebPart
Dim value As Boolean

value = instance.AllowHide

instance.AllowHide = value
[WebPartStorageAttribute(Storage.Shared)]
public override bool AllowHide { get; set; }

属性值

类型:System.Boolean
true如果可以隐藏 web 部件控件 ;否则为false。默认值是true。

备注

此属性不能由单个用户进行个性化设置。WebPartStorageAttribute其值为Storage.Shared,它指定的属性将存储的所有用户的相同值。只有具有写网页右侧的用户可以设置该属性。以编程方式,可以将或通过基于 Web 的用户界面,或使用SharePoint Foundation的共享视图中的 Web 部件任务窗格可以将设置 – 兼容的 HTML 编辑器如SharePoint Designer。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间