Xceed Workbooks for .NET v2.0 Documentation
Contains Method (WorksheetCollection)


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > WorksheetCollection Class : Contains Method
Returns true if the WorksheetCollection contains a Worksheet with the name “worksheetName”; returns false otherwise.
Syntax
'Declaration
 
Public Function Contains( _
   ByVal sourceWorksheetName As String _
) As Boolean
'Usage
 
Dim instance As WorksheetCollection
Dim sourceWorksheetName As String
Dim value As Boolean
 
value = instance.Contains(sourceWorksheetName)
public bool Contains( 
   string sourceWorksheetName
)

Parameters

sourceWorksheetName

Return Value

true if the Worksheet is found; false otherwise.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorksheetCollection Class
WorksheetCollection Members