WebPartManagerInternals.SetIsClosed(WebPart, Boolean) 方法
定义
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。A WebPart for which this method sets the IsClosed property.
- isClosed
- Boolean
指示 WebPart 是否已在网页上关闭的布尔值。A Boolean value that indicates whether a WebPart is closed on a page.
注解
SetIsClosed方法设置 IsClosed 的属性 webPart 。The SetIsClosed method sets the IsClosed property of webPart. 此方法实际上不会关闭 webPart ; 它仅设置指示是否已关闭的属性 webPart 。This method does not actually close webPart; it only sets the property that indicates whether webPart is closed.