共用方式為


WebPartManagerInternals.SetIsClosed(WebPart, Boolean) 方法

定義

設定 IsClosed 控制項的 WebPart 屬性。

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)

參數

webPart
WebPart

WebPart,這個方法為其設定 IsClosed 屬性。

isClosed
Boolean

布林值,指出網頁上的 WebPart 是否已關閉。

備註

方法 SetIsClosedIsClosed 設定 的 webPart 屬性。 這個方法實際上不會關閉 webPart ;它只會設定屬性,指出是否已 webPart 關閉。

適用於

另請參閱