[]
        
(Showing Draft Content)

C1.Excel.XLSheetCollection.Contains

Contains Method

Contains(XLSheet)

Determines whether the collection contains a specific XLSheet object.

Declaration
public bool Contains(XLSheet sheet)
Parameters
Type Name Description
XLSheet sheet

The object to look for in the collection.

Returns
Type Description
bool

True if the collection contains the object; False otherwise.

Contains(string)

Determines whether the collection contains an XLSheet object with a given name.

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

The name of the sheet to look for (case-insensitive).

Returns
Type Description
bool

True if the collection contains an XLSheet with the given sheetName; False otherwise.