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,
	XLCellRange[] cellRanges
)
Visual Basic
Public Function Add ( _
	name As String, _
	cellRanges As XLCellRange() _
) As XLNamedRange

Parameters

name
Type: System..::..String
The name of the named range to create.
cellRanges
Type: array<C1.Silverlight.Excel..::..XLCellRange>[]()[][]
The array of XLCellRange to include in the named 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