Upravit

Sdílet prostřednictvím


Html32TextWriter.OnStyleAttributeRender Method

Definition

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

Parameters

name
String

The HTML style attribute to write to the output stream.

value
String

The value associated with the HTML style attribute.

key
HtmlTextWriterStyle

The HtmlTextWriterStyle enumeration value associated with the HTML style attribute.

Returns

true if the HTML style attribute and its value will be rendered to the output stream; otherwise, false.

Remarks

The OnStyleAttributeRender method supports a smaller number of HTML style attributes than the OnStyleAttributeRender method that it overrides.

Applies to