GrapeCity.Win.MultiRow Namespace > CellCollection Class : AddRange Method |
<TakeCellFreezeAttribute()> Public Sub AddRange( _ ByVal cells As IEnumerable(Of Cell) _ )
Dim instance As CellCollection Dim cells As IEnumerable(Of Cell) instance.AddRange(cells)
[TakeCellFreeze()] public void AddRange( IEnumerable<Cell> cells )
Exception | Description |
---|---|
System.InvalidOperationException | The method is executed at run time. |
System.ArgumentNullException | The cells parameter is a null reference (Nothing in Visual Basic). -or- One of the items in the cells parameter is a null reference (Nothing in Visual Basic). |
System.ArgumentException | One of the items in the cells parameter has been added into another Section. |
System.InvalidOperationException | One of the items in the cells parameter is a ColumnHeaderCell but the owner Section is Row. -or- One of the items in the cells parameter is a RowHeaderCell but the owner Section is ColumnHeaderSection. -or- One of the items in the cells parameter is a RowHeaderCell or ColumnHeaderCell but the owner Section is ColumnFooterSection. |
System.NotSupportedException | The CellCollection is read-only. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2