DropDownList.AddAttributesToRender(HtmlTextWriter) 方法

定义

将需要呈现的 HTML 特性和样式添加到指定的 HtmlTextWriter 对象。Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriter object.

protected:
 override void AddAttributesToRender(System::Web::UI::HtmlTextWriter ^ writer);
protected override void AddAttributesToRender (System.Web.UI.HtmlTextWriter writer);
override this.AddAttributesToRender : System.Web.UI.HtmlTextWriter -> unit
Protected Overrides Sub AddAttributesToRender (writer As HtmlTextWriter)

参数

writer
HtmlTextWriter

一个 HtmlTextWriter,它表示将 HTML 内容呈现到客户端的输出流。An HtmlTextWriter that represents the output stream that renders HTML contents to the client.

注解

当从DropDownList类派生自定义控件时, 此成员主要由控件开发人员使用。This member is used primarily by control developers when deriving a custom control from the DropDownList class.

适用于