GrapeCity MultiRow Windows Forms Documentation
AddRange Method (CellCollection)


The array of Cell objects to add to the collection.
Adds an array of cells to the collection.
Syntax
<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
)

Parameters

cells
The array of Cell objects to add to the collection.
Exceptions
ExceptionDescription
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.ArgumentExceptionOne 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.NotSupportedExceptionThe CellCollection is read-only.
Requirements

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

See Also

Reference

CellCollection Class
CellCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.