[]
        
(Showing Draft Content)

C1.Excel.XLNamedRangeCollection.Contains

Contains Method

Contains(XLNamedRange)

Checks whether the collection contains a specific XLNamedRange object.

Declaration
public bool Contains(XLNamedRange namedRange)
Parameters
Type Name Description
XLNamedRange namedRange

The XLNamedRange object to look for.

Returns
Type Description
bool

True if the collection contains the range, false otherwise.

Contains(string)

Checks whether the collection contains an XLNamedRange object with the specified name.

Declaration
public bool Contains(string name)
Parameters
Type Name Description
string name

The name of the XLNamedRange object to look for.

Returns
Type Description
bool

True if the collection contains the range, false otherwise.