Rediger

Del via


WebPartManagerInternals.SetIsClosed(WebPart, Boolean) Method

Definition

Sets the IsClosed property of a WebPart control.

public:
 void SetIsClosed(System::Web::UI::WebControls::WebParts::WebPart ^ webPart, bool isClosed);
public void SetIsClosed (System.Web.UI.WebControls.WebParts.WebPart webPart, bool isClosed);
member this.SetIsClosed : System.Web.UI.WebControls.WebParts.WebPart * bool -> unit
Public Sub SetIsClosed (webPart As WebPart, isClosed As Boolean)

Parameters

webPart
WebPart

A WebPart for which this method sets the IsClosed property.

isClosed
Boolean

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

Remarks

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.

Applies to

See also