WebPart.IsClosed Property

Gets a value that specifies whether a Web Part is currently closed on a Web Part Page.

Namespace:  Microsoft.SharePoint.Client.WebParts
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property IsClosed As Boolean
    Get
'Usage
Dim instance As WebPart
Dim value As Boolean

value = instance.IsClosed
[RemoteAttribute]
public bool IsClosed { get; }

Property Value

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

Remarks

If true, the Web Part is closed. Web Parts that are closed must not be displayed on the page, and must not participate normally in the rendering of the page. The default value is false.

OpenWebPart method opens the Web Part. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

CloseWebPart method closes the Web Part. If the Web Part is already closed, this method does nothing. If the current user does not have permissions to modify the Web Part, the server must ignore the call to this method.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.Client.WebParts Namespace