WebPart.IsClosed 属性

定义

获取一个值,该值指示 WebPart 控件当前在 Web 部件页上是否已关闭。Gets a value that indicates whether a WebPart control is currently closed on a Web Parts page.

public:
 property bool IsClosed { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsClosed { get; }
member this.IsClosed : bool
Public ReadOnly Property IsClosed As Boolean

属性值

指示控件是否已关闭的布尔值。A Boolean value that indicates whether the control is closed.

属性

注解

关闭的 WebPart 控件不在页面上呈现,并且不参与页事件。A WebPart control that is closed is not rendered on the page and does not participate in page events. 但是,它通过 Web 部件应用程序保留在页面目录中,如果提供了相应的用户界面(UI),则用户可以将其添加回页面。However, it is maintained in a page catalog by the Web Parts application, and can be added back to the page by users if the appropriate user interface (UI) is provided. 有关详细信息,请参阅 AllowCloseFor more information, see AllowClose.

适用于

另请参阅