This documentation is archived and is not being maintained.

WebPart.AllowHide Property

Windows SharePoint Services 3

Gets or sets a value indicating whether end users are allowed to hide a WebPart control.

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

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

Property Value

Type: System.Boolean
true if the WebPart control can be hidden; otherwise, false. The default value is true.

This property cannot be personalized by individual users. The value of its WebPartStorageAttribute is Storage.Shared, which specifies that the property will be stored with the same value for all users. Only users with the Write web pages right can set this property. It can be set programmatically, or it can be set through the Web Part task pane in the shared view of the Web-based user interface, or by using a Windows SharePoint Services–compatible HTML editor, such as Microsoft Office SharePoint Designer 2007.

Show: