[]
        
(Showing Draft Content)

C1.WPF.Excel.XLSheetCollection.Contains

Contains Method

Contains(XLSheet)

Determines whether the collection contains a specific XLSheet object.

Declaration
public bool Contains(XLSheet sheet)
Public Function Contains(sheet As XLSheet) As Boolean
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)
Public Function Contains(sheetName As String) As Boolean
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.