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
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.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
ButtonStyle Class | ButtonStyle Members | Overload List
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.