Creates an XLCellRange object and appends it to the collection.

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public XLCellRange Add(
	int rowIndex,
	int colIndex,
	int rowCount,
	int colCount
)
Visual Basic
Public Function Add ( _
	rowIndex As Integer, _
	colIndex As Integer, _
	rowCount As Integer, _
	colCount As Integer _
) As XLCellRange

Parameters

rowIndex
Type: System..::..Int32
Index of the top row in the cell range.
colIndex
Type: System..::..Int32
Index of the left column in the cell range.
rowCount
Type: System..::..Int32
Number of rows in the cell range.
colCount
Type: System..::..Int32
Number of columns in the cell range.

Return Value

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).

See Also