TableRowCollection.AddRange(TableRow[]) 方法
定义
public:
void AddRange(cli::array <System::Web::UI::WebControls::TableRow ^> ^ rows);
public void AddRange (System.Web.UI.WebControls.TableRow[] rows);
member this.AddRange : System.Web.UI.WebControls.TableRow[] -> unit
Public Sub AddRange (rows As TableRow())
参数
- rows
- TableRow[]
该数组包含 TableRow 对象,这些对象将要添加到集合中。The array containing the TableRow objects to add to the collection.
例外
rows 参数的值为 null。The value of the rows parameter is null.
注解
使用 AddRange 方法可将 TableRow 指定数组中的对象追加到集合中。Use the AddRange method to append the TableRow objects from the specified array to the collection. 构造表时,通常使用此方法。This method is commonly used when you are constructing a table. 若要构造表,请先创建一个 TableRow 对象数组来表示表中的行。To construct a table, first create an array of TableRow objects to represent the rows of the table. 接下来,使用 AddRange 方法,将数组作为参数传递,将 TableRow 对象添加到集合中。Next, use the AddRange method, passing the array as an argument, to add the TableRow objects to the collection.