Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
<WebPartStorageAttribute(Storage.None)> _
Public Overrides Property Hidden As Boolean
Get
Set
'Usage
Dim instance As WebPart
Dim value As Boolean
value = instance.Hidden
instance.Hidden = value
[WebPartStorageAttribute(Storage.None)]
public override bool Hidden { get; set; }
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.
Please sign in to use this experience.
Sign in