Html32TextWriter.OnStyleAttributeRender Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.