Html32TextWriter.OnStyleAttributeRender(String, String, HtmlTextWriterStyle) 方法

定义

确定是否将指定的 HTML 样式特性及其值写入输出流。Determines whether to write the specified HTML style attribute and its value to the output stream.

protected:
 override bool OnStyleAttributeRender(System::String ^ name, System::String ^ value, System::Web::UI::HtmlTextWriterStyle key);
protected override bool OnStyleAttributeRender (string name, string value, System.Web.UI.HtmlTextWriterStyle key);
override this.OnStyleAttributeRender : string * string * System.Web.UI.HtmlTextWriterStyle -> bool
Protected Overrides Function OnStyleAttributeRender (name As String, value As String, key As HtmlTextWriterStyle) As Boolean

参数

name
String

要写入输出流的 HTML 样式特性。The HTML style attribute to write to the output stream.

value
String

与 HTML 样式特性关联的值。The value associated with the HTML style attribute.

key
HtmlTextWriterStyle

与 HTML 样式特性关联的 HtmlTextWriterStyle 枚举值。The HtmlTextWriterStyle enumeration value associated with the HTML style attribute.

返回

Boolean

如果 HTML 样式特性及其值要呈现到输出流,则为 true;否则为 falsetrue if the HTML style attribute and its value will be rendered to the output stream; otherwise, false.

注解

OnStyleAttributeRender方法支持的 HTML 样式特性数比 OnStyleAttributeRender 它重写的方法少。The OnStyleAttributeRender method supports a smaller number of HTML style attributes than the OnStyleAttributeRender method that it overrides.

适用于