System.Web.UI.WebControls.TableCell.AddAttributesToRender Method

Adds properties specific to the System.Web.UI.WebControls.TableCell control to the list of attributes to render.

Syntax

protected override void AddAttributesToRender (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
The output stream that renders HTML content to the client.

Remarks

The TableCell.AddAttributesToRender(System.Web.UI.HtmlTextWriter) method overrides the base class's WebControl.AddAttributesToRender(System.Web.UI.HtmlTextWriter) method and first calls the base method and then adds the System.Web.UI.WebControls.TableCell attributes corresponding to the TableCell.RowSpan property, the TableCell.ColumnSpan property and the TableCell.AssociatedHeaderCellID property. If the TableCell.AssociatedHeaderCellID property refers to a System.Web.UI.WebControls.TableHeaderCell that can not be found, an System.Web.HttpException is thrown.

The TableCell.AddAttributesToRender(System.Web.UI.HtmlTextWriter) method is used primarily by control developers extending the functionality of the System.Web.UI.WebControls.TableCell control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0