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

Parameters

name
Type: System..::..String
The name of the named range to create.
cellRange
Type: C1.Silverlight.Excel..::..XLCellRange
The 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