[]
        
(Showing Draft Content)

C1.Excel.XLCellRangeCollection.Add

Add Method

Add(XLCellRange)

Appends an XLCellRange object to the collection.

Declaration
public XLCellRange Add(XLCellRange cr)
Parameters
Type Name Description
XLCellRange cr

XLCellRange object to add to the collection.

Returns
Type Description
XLCellRange

A reference to the object if it was successfully added to the collection, or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection).

Add(int, int, int, int)

Creates an XLCellRange object and appends it to the collection.

Declaration
public XLCellRange Add(int rowIndex, int colIndex, int rowCount, int colCount)
Parameters
Type Name Description
int rowIndex

Index of the top row in the cell range.

int colIndex

Index of the left column in the cell range.

int rowCount

Number of rows in the cell range.

int colCount

Number of columns in the cell range.

Returns
Type Description
XLCellRange

A reference to the object if it was successfully added to the collection, or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection).