System.Web.UI.WebControls.WebParts.WebPart.AllowHide Property

Gets or sets a value indicating whether end users are allowed to hide a System.Web.UI.WebControls.WebParts.WebPart control.

Syntax

public virtual bool AllowHide { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The WebPart.AllowHide property determines whether users can modify the WebPart.Hidden property. In the default case, when the property value is true, users can change the value when the control is being edited. By default, controls are not hidden and their WebPart.Hidden property value is false. When a System.Web.UI.WebControls.WebParts.WebPart control is being edited, if a user selects a check box to hide the control (which sets the WebPart.Hidden property to true), the control will no longer be visible when the page returns to browse mode.

Hidden controls are distinct from controls that are closed, because the WebPart.Hidden property has a distinct meaning within the Web Parts control set. Closed controls are not even rendered on a page, and do not participate in page life cycle events. In contrast, while hidden System.Web.UI.WebControls.WebParts.WebPart controls are not visible to users, they are still rendered on a Web page, are still contained in a zone, and can still maintain connections with other System.Web.UI.WebControls.WebParts.WebPart controls as part of a Web Parts application.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

The personalization scope of this property is set to PersonalizationScope.Shared and can be modified only by authorized users. For more information, see System.Web.UI.WebControls.WebParts.PersonalizableAttribute and Web Parts Personalization Overview.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0