Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPart.Hidden property

Gets or sets a value indicating whether the Web Part is displayed on a Web page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[WebPartStorageAttribute(Storage.None)]
public override bool Hidden { get; set; }

Property value

Type: System.Boolean
false if the Web Part is displayed on a Web page; otherwise, true. The default value is false.

The Hidden property is ignored for static Web Parts (Web Parts not in a zone). To hide a static Web Part, you can do one of the following:

  • Use the IsVisible property, which renders the Web Part but prevents it from being displayed.

  • Use the underlying Control.Visible property to prevent the control from being rendered to the client.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.