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
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public ReadOnly Property IsClosed As Boolean
Get
'Usage
Dim instance As WebPart
Dim value As Boolean
value = instance.IsClosed
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.