Share via


WebPart.Hidden property

Gets or sets a value that specifies whether a Web Part is displayed on a Web Part Page.

Namespace:  Microsoft.SharePoint.Client.WebParts
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property Hidden As Boolean
    Get
    Set
'Usage
Dim instance As WebPart
Dim value As Boolean

value = instance.Hidden

instance.Hidden = value
public bool Hidden { get; set; }

Property value

Type: System.Boolean
Returns Booleantrue if a Web Part is displayed on a Web Part Page; otherwise, returns false.

Remarks

If true, the Web Part must be hidden. Web Parts that are hidden must not be displayed on the page to the end user, but should still participate normally in the rendering of the page. The default value is false.

See also

Reference

WebPart class

WebPart members

Microsoft.SharePoint.Client.WebParts namespace