Version

AddStyleAttributeToRender Method

Adds style attribute to the writer.
Syntax
'Declaration
 
Protected Overridable Sub AddStyleAttributeToRender( _
   ByVal writer As HtmlTextWriter _
) 
protected virtual void AddStyleAttributeToRender( 
   HtmlTextWriter writer
)

Parameters

writer
Writer to render the attribute into.
Remarks
Adds styles off the control itself such as BackColor, Font etc., as well as off the STYLE attribute. The STYLE attribute settings will take precedence over the control's settings.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also