public InsertRange ( int index, |
||
index | int | The zero-based index at which the rows /// should be inserted |
rows | The array of Rows to be inserted into /// the collection | |
Résultat | void |
public void InsertRange(int index, Row[] rows)
{
if (rows == null)
{
throw new System.ArgumentNullException("Row[] is null");
}
if (index < 0)
{
throw new IndexOutOfRangeException();
}
if (index >= this.Count)
{
this.AddRange(rows);
}
else
{
for (int i=rows.Length-1; i>=0; i--)
{
this.Insert(index, rows[i]);
}
}
}