HtmlTableCellCollection::Add Method
Appends the specified HtmlTableCell object to the end of the HtmlTableCellCollection collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- cell
- Type: System.Web.UI.HtmlControls::HtmlTableCell
The HtmlTableCell to add to the collection.
Use this method to add the specified HtmlTableCell object to the end of an HtmlTableCellCollection collection. If you want to insert an HtmlTableCell object in a specified location in the collection, use the Insert method.
The following code example demonstrates how to use the Add method to append a cell of a table, represented by an HtmlTableCell object, to the end of an HtmlTableCellCollection collection. Notice that the Cells property of a row represented by an HtmlTableRow object is the HtmlTableCellCollection collection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.