WebZone.HasFooter 属性
定义
获取一个值,该值指示区域中是否具有页脚区域。Gets a value indicating whether a zone has a footer area.
protected:
virtual property bool HasFooter { bool get(); };
protected virtual bool HasFooter { get; }
member this.HasFooter : bool
Protected Overridable ReadOnly Property HasFooter As Boolean
属性值
如果区域具有页脚区域,则为 true;否则为 false。true if the zone has a footer area; otherwise, false. 默认值是 true。The default value is true.
注解
此 HasFooter 属性主要由创建自定义区域的控件开发人员使用。The HasFooter property is primarily used by control developers who are creating custom zones. 它作为标志存在,以便 Web 部件控件集仅在适用于区域时呈现脚注。It exists as a flag so that the Web Parts control set renders a footer only when appropriate for a zone. 例如, HasFooter 属性重写此属性并返回 false ,因此不会为控件呈现脚注 WebPartZone 。For example, the HasFooter property overrides this property and returns false, so that a footer is not rendered for a WebPartZone control.
工具区域 (通过类从类间接派生的区域 WebZone ToolZone ,如 EditorZone 和 CatalogZone) 必须具有页脚,以便例如,它们可以使用 "确定"、"应用" 和 "取消" 按钮(如 "确定"、" 应用" 和 " 取消 ")在区域底部呈现常见用户界面 (UI) 谓词。Tool zones (zones that derive indirectly from the WebZone class by means of the ToolZone class, such as EditorZone and CatalogZone) must have footers so that, for example, they can render common user interface (UI) verbs with buttons such as OK, Apply, and Cancel at the bottom of the zone. 由于 HasFooter 属性默认为 true ,因此工具区域不需要重写属性。Because the HasFooter property is true by default, tool zones do not need to override the property.
继承者说明
如果创建的是从派生的自定义工具区域 ToolZone ,则可以重写 RenderFooter(HtmlTextWriter) 方法,并为区域的脚注提供呈现功能。If you are creating a custom tool zone that derives from ToolZone, you can override the RenderFooter(HtmlTextWriter) method and provide rendering for your zone's footer.