System.Web.UI.WebControls.TableCellCollection.AddRange Method

Appends the System.Web.UI.WebControls.TableCell objects from the specified array to the end of the collection.

Syntax

public void AddRange (TableCell[] cells)

Parameters

cells
The array containing the System.Web.UI.WebControls.TableCell objects to add to the collection.

Remarks

Use the TableCellCollection.AddRange(TableCell[]) method to append the System.Web.UI.WebControls.TableCell objects from the specified array to the collection. This method is commonly used when you are constructing a row of a table. To construct a row of a table, first create an array of System.Web.UI.WebControls.TableCell objects to represent the cells of the row. Next, use the TableCellCollection.AddRange(TableCell[]) method, passing the array as an argument, to add the System.Web.UI.WebControls.TableCell objects to the collection.

Requirements

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