Creates an XLNamedRange 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 XLNamedRange Add(
	string name,
	XLSheet sheet,
	int rowIndex,
	int colIndex,
	int rowCount,
	int colCount
)
Visual Basic
Public Function Add ( _
	name As String, _
	sheet As XLSheet, _
	rowIndex As Integer, _
	colIndex As Integer, _
	rowCount As Integer, _
	colCount As Integer _
) As XLNamedRange

Parameters

name
Type: System..::..String
The name of XLNamedRange object.
sheet
Type: C1.Silverlight.Excel..::..XLSheet
The worksheet containing the range.
rowIndex
Type: System..::..Int32
The index of the top row in the cell range.
colIndex
Type: System..::..Int32
The index of the left column in the cell range.
rowCount
Type: System..::..Int32
The number of rows in the cell range.
colCount
Type: System..::..Int32
The 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 (usually because it overlaps another cell range already in the collection).

See Also