DataPager.TagKey DataPager.TagKey DataPager.TagKey DataPager.TagKey Property

定義

取得用於呈現 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; }
member this.TagKey : System.Web.UI.HtmlTextWriterTag
Protected Overridable ReadOnly Property TagKey As HtmlTextWriterTag

屬性值

備註

屬性會傳回 HTML 專案, 此RenderBeginTag專案是由方法用來撰寫DataPager控制項的適當標記。 TagKeyThe TagKey property returns an HTML element that is used by the RenderBeginTag method to write the appropriate markup for the DataPager control. 這個屬性會覆寫基底實作為HtmlTextWriterTag.Span一律傳回。This 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.

適用於

另請參閱