See Also

ButtonStyle Class  | ButtonStyle Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

writer
A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.
owner
A WebControl or WebControl derived object that represents the Web server control associated with the Style.
See Also Languages PowerWEB TextBox for ASP.NET

AddAttributesToRender(HtmlTextWriter,WebControl) Method

Dart.PowerWEB.TextBox Namespace > ButtonStyle Class > AddAttributesToRender Method : AddAttributesToRender(HtmlTextWriter,WebControl) Method

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriter.

[Visual Basic]
Overloads Overrides Public Sub AddAttributesToRender( _    ByVal writer As HtmlTextWriter, _    ByVal owner As WebControl _ )
[C#]
public override void AddAttributesToRender(    HtmlTextWriter writer,    WebControl owner );
[C++]
public: void AddAttributesToRender(    HtmlTextWriter* writer,    WebControl* owner ) override
[C++/CLI]
public: void AddAttributesToRender(    HtmlTextWriter^ writer,    WebControl^ owner ) override

Parameters

writer
A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.
owner
A WebControl or WebControl derived object that represents the Web server control associated with the Style.

Remarks

To render attributes and styles for a Web server control on the client, you typically call the HtmlTextWriter.AddAttribute and HtmlTextWriter.AddStyleAttribute methods to insert each attribute and style individually to the System.Web.UI.HtmlTextWriter output stream. To simplify the process, this method encapsulates all calls to the HtmlTextWriter.AddAttribute and HtmlTextWriter.AddStyleAttribute methods for every attribute and style associated with the Web server control. All attributes and styles are inserted into the System.Web.UI.HtmlTextWriter output stream in a single method call. This method is typically overridden by control developers in derived classes to insert the appropriate attributes and styles to the System.Web.UI.HtmlTextWriter output stream for the class.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

ButtonStyle Class  | ButtonStyle Members  | Overload List


Send comments on this topic.

Documentation version 3.2.0.0.

© 2009 Dart Communications.  All rights reserved.