DataPager.TagKey 属性

定义

获取用于呈现 DataPager 控件的 HTML 元素。Gets the HTML element that is used to render the DataPager control.

protected:
 virtual property System::Web::UI::HtmlTextWriterTag TagKey { System::Web::UI::HtmlTextWriterTag get(); };
[System.ComponentModel.Browsable(false)]
protected virtual System.Web.UI.HtmlTextWriterTag TagKey { get; }
[<System.ComponentModel.Browsable(false)>]
member this.TagKey : System.Web.UI.HtmlTextWriterTag
Protected Overridable ReadOnly Property TagKey As HtmlTextWriterTag

属性值

HtmlTextWriterTag

总是为 SpanAlways Span.

属性

注解

TagKey属性返回一个 HTML 元素,该元素由方法用 RenderBeginTag 来写入控件的相应标记 DataPagerThe TagKey property returns an HTML element that is used by the RenderBeginTag method to write the appropriate markup for the DataPager control. 此属性将重写基实现以始终返回 HtmlTextWriterTag.SpanThis property overrides the base implementation to always return HtmlTextWriterTag.Span.

备注

此属性主要由控件开发人员用来扩展 DataPager 控件。This property is primarily used by control developers to extend the DataPager control.

继承者说明

您可以重写此属性,以指定 HtmlTextWriterTag 要用于派生控件的值。You can override this property to specify which HtmlTextWriterTag value to use for a derived control.

适用于