Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLSheetCollection Class / Contains Method / Contains(String) Method
The name of the sheet to look for (case-insensitive).

In This Topic
    Contains(String) Method
    In This Topic
    Determines whether the collection contains an XLSheet object with a given name.
    Syntax
    'Declaration
     
    
    Public Overloads Function Contains( _
       ByVal sheetName As String _
    ) As Boolean
    public bool Contains( 
       string sheetName
    )

    Parameters

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

    Return Value

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