SetIsClosed Method

WebPartManagerInternals.SetIsClosed Method (WebPart, Boolean)


Sets the IsClosed property of a WebPart control.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public void SetIsClosed(
	WebPart webPart,
	bool isClosed


Type: System.Web.UI.WebControls.WebParts.WebPart

A WebPart for which this method sets the IsClosed property.

Type: System.Boolean

A Boolean value that indicates whether a WebPart is closed on a page.

The SetIsClosed method sets the IsClosed property of webPart. This method does not actually close webPart; it only sets the property that indicates whether webPart is closed.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft