Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLNamedRangeCollection Class / Add Method / Add(XLNamedRange) Method
The XLNamedRange object to add to the collection.

In This Topic
    Add(XLNamedRange) Method
    In This Topic
    Appends an XLNamedRange object to the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal namedRange As XLNamedRange _
    ) As XLNamedRange

    Parameters

    namedRange
    The XLNamedRange object to add to the collection.

    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