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.